diff options
author | andi <andi@splitbrain.org> | 2005-06-26 12:09:13 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-06-26 12:09:13 +0200 |
commit | 98407a7ab8cdc6e868009187f47cc7768449a3c9 (patch) | |
tree | 81ff92e45a1ec0db93dadbbf24fbab1f17cea434 /inc/parserutils.php | |
parent | d477fdcf1c8e21ef479942fe1d14acb7991d8a4a (diff) | |
download | rpg-98407a7ab8cdc6e868009187f47cc7768449a3c9.tar.gz rpg-98407a7ab8cdc6e868009187f47cc7768449a3c9.tar.bz2 |
directory cleanup
This cleans up the directory structure as discussed on the mailning
list. Users should delete their previous _cache directories to
recover diskspace.
darcs-hash:20050626100913-9977f-83c0fdc32047db2090fc52a843ffae50cbf12248.gz
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 |