Start a new topic

Disabling cache

Hi,


How can I disable the cache when working with the frontend themes?


:Sigve

1 Comment

Any theme file changing cause cache invalidation (similar to ASP.NET razor templates).


But if you wants to disabling cache you should make follow changes in storefront  web.config

To disable 'full page caching'

    

<system.web>
    <caching>
	<outputCache defaultProvider="CacheManagerOutputCacheProvider" enableOutputCache="false"> 

    

To disable  theme templates and API data caching need to set cache expiration 1s

  

 <cacheManager xmlns="http://tempuri.org/CacheManagerCfg.xsd">
	...
	<handle ref="runtimeMemory" name="inMemoryCacheHandle" expirationMode="Absolute" timeout="1s" />

  

Login or Signup to post a comment