mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 13:06:22 +05:30
Added Option to disable Cache. Debugging made easy.
This commit is contained in:
parent
24f401bb3c
commit
6e7adcee7d
1 changed files with 2 additions and 0 deletions
|
|
@ -1626,6 +1626,8 @@ EOF;
|
||||||
// File cache
|
// File cache
|
||||||
function file_cache($request) {
|
function file_cache($request) {
|
||||||
|
|
||||||
|
if(config('cache.off')) return;
|
||||||
|
|
||||||
$c = str_replace('/', '#', str_replace('?', '~', $request));
|
$c = str_replace('/', '#', str_replace('?', '~', $request));
|
||||||
$cachefile = 'cache/page/' . $c . '.cache';
|
$cachefile = 'cache/page/' . $c . '.cache';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue