Variables | |
$cache_naming = 'md5' | |
$cache_name_pre = '(' | |
$cache_name_post = ')-' | |
$cache_extension = '.tpl.php' | |
$server_caching = true | |
$client_caching = true | |
$gzip = true | |
$compression_level = 4 | |
$cache_lifetime = array('page'=>'1.month', 'css'=>'6.month', 'javascript'=>'6.month', 'frameworks'=>'6.month') |
TIDEngine different General Cache Settings.
Your Pages performance depends from this settings. We recomend to use Default settings for best results.
But anyway you could make experiments and adjust by your needs. This settings are applied to all files.
$cache_naming = 'md5' [inherited] |
Templates/Pages cache files unique naming type.
string | $cache_naming | - you can use one of the following name possibilities:
|
Definition at line 108 of file TIDEngine.php.
$cache_name_pre = '(' [inherited] |
Cache name prefix implemented for easier data changes check unique value inside brackets.
string,: |
|
Definition at line 116 of file TIDEngine.php.
$cache_name_post = ')-' [inherited] |
Cache name sufix implemented for easier data changes check unique value inside brackets.
string,: |
|
Definition at line 124 of file TIDEngine.php.
$cache_extension = '.tpl.php' [inherited] |
Pages cache extension in use, you can use any type of extension, because Template/Page Cache File just store XHTML code,
there are no direct access, they are final data storag, render by TIDEngine.
string | $cache_extension |
Definition at line 132 of file TIDEngine.php.
$server_caching = true [inherited] |
Use Server Caching. If this is enabled all Page Components will be processed depending of Settings and Cached on Server Side.
Until Page Components do not expire or some of Data are changed TIDEngine will serve Cached. Files for every Page Request.
bool | $server_caching |
Definition at line 141 of file TIDEngine.php.
$client_caching = true [inherited] |
Use Client/Browser Caching. If this is enabled on every page request will be checked Cache existance and validity.
If Cache files pass checking for individual Cache file will be set 304 Redirect - Not Modified.
EG. If you have unique Javascript files for all pages on different pages access will be used same Javascript, CSS files from Browser cache if is valid if not TIDEngine will serve Server Side Cached Files.
bool | $client_caching |
Definition at line 151 of file TIDEngine.php.
$gzip = true [inherited] |
Use gzip compression on Page/Template Compress Server Side Cache Files.
bool | $gzip |
Definition at line 158 of file TIDEngine.php.
$compression_level = 4 [inherited] |
Set general compression level for all Cache Files. There are 1-9 - gzip compression levels.
bool | $compression_level |
Definition at line 169 of file TIDEngine.php.
$cache_lifetime = array('page'=>'1.month', 'css'=>'6.month', 'javascript'=>'6.month', 'frameworks'=>'6.month') [inherited] |
Set Cache Life Time in seconds EG. 60 seconds x 60 minutes x 24 hours = one day cache life time.
You can set cache lifetime in miliseconds or as string 'permanent' means.
EG. 1.minute 1.hour 1.day 1.month 1.year
$this->cache_lifetime = array( 'page'=>'1.minute', 'css'=>'1.hour', 'javascript'=>'1.day', 'frameworks'=>'1.month' );
Other possibility is to set one lifetime for all cache files:
$this->cache_lifetime = '1.month';
or
$this->cache_lifetime = 'permanent';
array | $cache_lifetime |
Definition at line 194 of file TIDEngine.php.