summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-06-26 12:09:13 +0200
committerandi <andi@splitbrain.org>2005-06-26 12:09:13 +0200
commit98407a7ab8cdc6e868009187f47cc7768449a3c9 (patch)
tree81ff92e45a1ec0db93dadbbf24fbab1f17cea434 /inc/common.php
parentd477fdcf1c8e21ef479942fe1d14acb7991d8a4a (diff)
downloadrpg-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/common.php')
-rw-r--r--inc/common.php8
1 files changed, 7 insertions, 1 deletions
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{