diff options
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r-- | inc/parserutils.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php index bd5317e1b..9046cfdbe 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -67,8 +67,7 @@ function p_locale_xhtml($id){ */ function p_cached_xhtml($file){ global $conf; - $cache = $conf['datadir'].'/_cache/xhtml/'; - $cache .= md5($file.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT']); + $cache = getCacheName($file.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'],'.xhtml'); $purge = $conf['datadir'].'/_cache/purgefile'; // check if cache can be used @@ -112,8 +111,7 @@ function p_cached_xhtml($file){ */ function p_cached_instructions($file,$cacheonly=false){ global $conf; - $cache = $conf['datadir'].'/_cache/instructions/'; - $cache .= md5($file.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT']); + $cache = getCacheName($file.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'],'.i'); // check if cache can be used $cachetime = @filemtime($cache); // 0 if not exists |