Cache-O-Matic

The easiest way to cache content in Mura is to use the built in cf_cacheOMatic tag. For those who are not familiar with the tag, it gives the user the ability to cache any desired display content.

Example

You can also set the timespan the item will remain cached.

If you have a code snippet that you do not want to ever be cached you can set request.cacheItem=false and any wrapping CacheOMatic tags will not add the rendered output to the cache. (For example, $.setDynamicContent() uses request.cacheItem=false)

Programmatically Setting the Cached Items Timespan

If you have a code snippet that you want to be in the sites cache for no longer that a certain timespan you can set request.cacheItemTimeSpan={TimeSpan Object}.