Difference between revisions of "Smarty Caching"

From TMM Wiki
Jump to navigationJump to search
m
(No difference)

Revision as of 13:44, 23 September 2008

CARMA
Templates Admin
Members Area Templates
Tour Templates
Member Favorites
Smarty Loops
Smarty Caching
Smarty print array
Base Templates
User Variables
Rating System

We enabled Smarty Caching in the CARMA site_scripts and tour_scripts. This caches your site and tour pages. The default settings caching pages for 30 minutes. This means a change to your site may not be displayed for up to 30 minutes. Things like polls, ratings, and searches are not cached. You can change the settings in the configuration page under the Cache Settings tabs.

Check the box for 'NO_SMARTY_CACHE' to turn off all Smarty Caching.

Changing the value in 'SMARTY_CACHE_LIFE' changes the number of seconds a page is cached. The default is 1800 seconds (30 minutes). You can enter any whole number or the word 'Daily'. Daily caches pages for an entire day and updates them at 1AM local time.

If you want to clear the cache, go to the Templates Admin and click the 'Clear Template Cache' link.