First, in index. in php, define (& amp; #39; APP_DEBUG & amp; #39;, false) must be written. second, in config. & amp; #39; HTML_CACHE_ON & amp; #39; & gt; & amp; #39...
First, define ('app _ debug', false) must be written in index. php.
2. in config. php, you need to write
- 'HTML _ CACHE_ON '=> 'true', // enable static cache
- 'HTML _ path' => APP_PATH. 'HTML/', // cache Directory
- 'HTML _ CACHE_TIME '=> '123', // cache time
- 'HTML _ READ_TYPE '=> 0,
- 'HTML _ cache_rules' => array (
- // '*' => Array ('{$ _ SERVER. REQUEST_URI | md5 }'),
- 'Associator: index' => array ('associator/index/{$ _ SERVER. REQUEST_URI | md5} ', '123'), // Action lower case
- 'Build: '=> array ('build/{: action}/{$ _ SERVER. REQUEST_URI | md5}', '123 '),
- ),
- 'Data _ CACHE_TYPE '=> 'File', // DATA cache file
- 'Data _ cache_subdir' => 'true', // dynamic cache
- 'Data _ PATH_LEVEL '=> '2', // multi-level dynamic cache