thinkphp 内置缓存页

xiaoxiao2021-02-28  117

'HTML_CACHE_ON'=>true,     'HTML_PATH' =>'__APP__/html',     'HTML_CACHE_TIME'=>86400,     'HTML_FILE_SUFFIX'=>'.html',     'HTML_READ_TYPE'=>0,     'HTML_CACHE_RULES'  =>     array(     // 定义静态缓存规则           // 对单个操作进行缓存     'Index:'   =>       '{:module}/{:action}',     'Dispark:'   =>       '{:module}/{:action}',     'Apparea:'   =>       '{:module}/{:action}',     'Elelife:'   =>       '{:module}/{:action}',     'Netarea:'   =>       '{:module}/{:action}',     'Operate:'   =>       '{:module}/{:action}',     )          /*//缓存类型,这里写的是文件缓存     //'DATA_CACHE_TYPE'=>'File',     //缓存文件前缀     //'DATA_CACHE_PREFIX'    =>'suffix_',     //缓存时间,秒     //'DATA_CACHE_TIME'        =>60,*/
转载请注明原文地址: https://www.6miu.com/read-38177.html

最新回复(0)