mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 20:16:22 +05:30
File cache support
File cache support. Any visited pages by anonymous user will generating .cache file inside cache/page folder.
This commit is contained in:
parent
58d032419f
commit
16143d33db
10 changed files with 203 additions and 23 deletions
12
system/admin/views/clear-cache.html.php
Normal file
12
system/admin/views/clear-cache.html.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
rebuilt_cache('all');
|
||||
|
||||
foreach(glob('cache/page/*.cache', GLOB_NOSORT) as $file) {
|
||||
unlink($file);
|
||||
}
|
||||
|
||||
|
||||
echo 'All cache has been deleted!';
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue