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:
Danang Probo Sayekti 2014-06-27 07:14:17 +07:00
commit 16143d33db
10 changed files with 203 additions and 23 deletions

View 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!';
?>