Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

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

Vote:
 

Hi,

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

thanks

#114907
Dec 31, 2014 9:06
Vote:
 

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).

#114921
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.