From 98407a7ab8cdc6e868009187f47cc7768449a3c9 Mon Sep 17 00:00:00 2001 From: andi Date: Sun, 26 Jun 2005 12:09:13 +0200 Subject: 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 --- inc/parserutils.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'inc/parserutils.php') 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 -- cgit v1.2.3