Details
- Phalcon version: 3.0.1
- PHP Version:7.0.6
- Operating System:centos6.7
- Server: Nginx
This is my expected results:
the global cache config(config/html_cache_rule.php):
<?php
return [
'HTML_CACHE_ON' => 'on', //on is use html cache; off is shutup
'HTML_CACHE_RULES' =>[
'Index:index' => ['this is server url will be md5', 'this is cache time'],
'Search:index' => ['this is server url will be md5', 'this is cache time'],
'Article:' => ['this is server url will be md5', 'this is cache time'],
],
];
?>
Then the cacheDir will be written html cache file by the map of the action. If I access the action Index:index and in the map of cache time, then return the html cache file, if expires, will access the action Index:index and rewrite the html cache file.
PS: 'Article:' will generate html cache file all his action.
#########################################
I think it many days, but I do not how to implement it. Can any one help me??