Sponsored Link

Cache

The template will be evaluated as PHP code after it has been parsed.
This source is saved as an PHP file will be used as a cache.
Parameters related to the cache, refer to CACHE_*.

To enable the cache is set to 'CACHE_FLG' = TRUE.

Example.1

Set as the default value in OnePlate.php

$conf = array(...
                'CACHE_FLG' => TRUE
         ...);


Example.2

Set the parameters when creating an instance.

$op_conf = array('CACHE_FLG'=>TRUE);
$op = new OnePlate($op_conf);


Example.3

After the generation of the instance, to set the value of the property of a class.

$op = new OnePlate();
$op->conf['CACHE_FLG'] = TRUE;