You can configure the L2 cache settings per persistent type - both in Network Load Balanced (NLB) environment as well as single instance environment.
L2 cache in Sitefinity CMS is used to cache database query results for subsequent requests. Using L2 cache can significantly increase the overall performance of your application. For example, when you open the news grid in the backend for the first time, data is requested from the database to populate the grid. Telerik Data Access caches the data and subsequent request return the cached response.
By default, caching is enabled for all persistent types. By configuring the L2 Cache Strategies setting, you can specify which persistent types not to use the L2 cache.
RECOMMENDATION: It is recommended to have the L2 cache turned on for all persistent types and disable it only for testing purposes.
When you change the L2 cache strategy for a specific content type, the strategy does not automatically apply to any related types. For example, if you disable the L2 cache for the Blog content type, you actually do not disable the L2 cache for the Blogpost content type. To disable L2 cache for the Blogpost type, you need to explicitly do so.
NOTE: Turning off L2 cache for the DynamicContent type turns it off for every artificial type created with the DynamicModule builder. Turning off L2 cache for taxonomies turns it off for all Ecommerce departments because departments classify as a taxonomy.
Back To Top