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/common.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'inc/common.php') diff --git a/inc/common.php b/inc/common.php index 353b306e6..53bb73a13 100644 --- a/inc/common.php +++ b/inc/common.php @@ -593,7 +593,7 @@ function saveWikiText($id,$text,$summary){ //purge cache on add by updating the purgefile if($conf['purgeonadd'] && (!$old || $del)){ - io_saveFile($conf['datadir'].'/_cache/purgefile',time()); + io_saveFile($conf['cachedir'].'/purgefile',time()); } } @@ -809,6 +809,12 @@ function check(){ msg('Mediadir is not writable',-1); } + if(is_writable($conf['cachedir'])){ + msg('Cachedir is writable',1); + }else{ + msg('Cachedir is not writable',-1); + } + if(is_writable(DOKU_INC.'conf/users.auth.php')){ msg('conf/users.auth.php is writable',1); }else{ -- cgit v1.2.3