SaaS CMS has officially launched! Learn more now.

Is PageLanguageSettingsTree.Instance.Get(PageReference) cached by EpiServer?



Is PageLanguageSettingsTree.Instance.Get(PageReference) cached by EpiServer (like DataFactory.Instance.Get())?


Dec 31, 2014 9:06

Looking at source code I can see that language settings for the content is "cached" inside local class field. ContentLanguageSettignsHandler (actual implementer behind PageLanguageSettingsTree) is configured to have a Singleton lifecycle. Which means that once settings are read from underlying storage - they are stored in memory till next application pool restart. Values are "deleted" (list is cleared and dictionary set to null) from the memory if somebody made some changes to language settings for the content (this is implemented through event pub/sub).

Jan 01, 2015 17:38
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.