Difference between revisions of "Smarty Caching"

From TMM Wiki
Jump to navigationJump to search
m
 
 
Line 3: Line 3:
 
}}
 
}}
  
We enabled [[Smarty]] Caching in the CARMA site_scripts and tour_scripts.
+
[[Smarty]] Caching is now enabled in the [[CARMA]] site_scripts and tour_scripts. This feature can greatly speed up the loading of certain templates by caching your site and tour pages.  
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.
+
The default [[Smarty]] Caching settings cache your sites and tours for 1800 seconds (30 minutes). With this setting enabled, a change to your site may not be displayed for up to 30 minutes, for example, because of the cache. However, things like polls, ratings, and searches are not cached, so they will be updated immediately.
  
Changing the value in 'SMARTY_CACHE_LIFE' changes the number of seconds
+
To change the default settings for [[Smarty]] Caching in [[CARMA]], go to the [[CARMA Configuration Admin|Configuration Admin]]. The settings to alter your caching can be found in the "Cache Settings" section.
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
+
[[File:Carma cache settings configuration.PNG|450px|Changing your CARMA Cache Settings]]
'Clear Template Cache' link.
+
 
 +
If you wish to turn off all Smarty Caching, check the box for the ''NO_SMARTY_CACHE'' configuration option.
 +
 
 +
The ''SMARTY_CACHE_LIFE'' setting allows you to change the number of seconds that a page is cached for. The default value for this setting is 1800 seconds (30 minutes). However you can enter any whole number (of seconds), or the word ''Daily''. Setting this configuration option to ''Daily'' will cache pages for an entire day, and update them at 1 AM local time every day.
 +
 
 +
If you want to clear the caches for your [[Members Area Templates]] and [[Tour Templates]], you can do so through the Templates Admin. Go to the Templates Admin and select the template set or site you wish to clear the cache for from the "Manage Member's Area Templates for" or the "Manage Tours Templates for" drop-down menu. When you have selected the site or template set you want to clear the cache for, click the "Clear Template Cache" link next to the drop-down menus.
 +
 
 +
[[File:Carma_manage_member_templates.PNG|450px|Manage your CARMA Member's Area Templates]]
 +
[[File:Carma_manage_tours_templates.PNG|450px|Manage your CARMA Tour Templates]]

Latest revision as of 15:40, 19 August 2010

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

Smarty Caching is now enabled in the CARMA site_scripts and tour_scripts. This feature can greatly speed up the loading of certain templates by caching your site and tour pages.

The default Smarty Caching settings cache your sites and tours for 1800 seconds (30 minutes). With this setting enabled, a change to your site may not be displayed for up to 30 minutes, for example, because of the cache. However, things like polls, ratings, and searches are not cached, so they will be updated immediately.

To change the default settings for Smarty Caching in CARMA, go to the Configuration Admin. The settings to alter your caching can be found in the "Cache Settings" section.

Changing your CARMA Cache Settings

If you wish to turn off all Smarty Caching, check the box for the NO_SMARTY_CACHE configuration option.

The SMARTY_CACHE_LIFE setting allows you to change the number of seconds that a page is cached for. The default value for this setting is 1800 seconds (30 minutes). However you can enter any whole number (of seconds), or the word Daily. Setting this configuration option to Daily will cache pages for an entire day, and update them at 1 AM local time every day.

If you want to clear the caches for your Members Area Templates and Tour Templates, you can do so through the Templates Admin. Go to the Templates Admin and select the template set or site you wish to clear the cache for from the "Manage Member's Area Templates for" or the "Manage Tours Templates for" drop-down menu. When you have selected the site or template set you want to clear the cache for, click the "Clear Template Cache" link next to the drop-down menus.

Manage your CARMA Member's Area Templates Manage your CARMA Tour Templates