Permalink
Browse files

Adds clearing of extensionuploads folder to the list of clear all cac…

…hes via the exponent menu command and upgrade script
  • Loading branch information...
1 parent 68967dc commit 422e71e99369276df9fbf6f9a2dd268151210d0f @dleffler dleffler committed Aug 24, 2011
View
@@ -1,3 +1,4 @@
+
# Excludes all files within the ./ files directory
#/files/*
@@ -18,4 +19,4 @@
/.idea/
.gitignore
-.mailmap
+.mailmap
@@ -434,7 +434,7 @@ public function clear_css_cache() {
}
public function clear_image_cache() {
- expFile::removeFilesInDirectory(BASE.'tmp/pixidou'); // alt location for pixidou cache
+ expFile::removeFilesInDirectory(BASE.'tmp/pixidou');
if (file_exists(BASE.'tmp/img_cache')) expFile::removeFilesInDirectory(BASE.'tmp/img_cache');
$message = "Image/Pixidou Cache has been cleared" ;
flash('message',$message);
@@ -451,8 +451,9 @@ public function clear_rss_cache() {
public function clear_all_caches() {
expTheme::removeSmartyCache();
expTheme::removeCss();
- expFile::removeFilesInDirectory(BASE.'tmp/pixidou'); // alt location for pixidou cache
+ expFile::removeFilesInDirectory(BASE.'tmp/pixidou');
if (file_exists(BASE.'tmp/img_cache')) expFile::removeFilesInDirectory(BASE.'tmp/img_cache');
+ if (file_exists(BASE.'tmp/extensionuploads')) expFile::removeFilesInDirectory(BASE.'tmp/extensionuploads');
expFile::removeFilesInDirectory(BASE.'tmp/rsscache');
$message = "All the System Caches have been cleared" ;
flash('message',$message);
@@ -52,16 +52,14 @@ function needed() {
function upgrade() {
// work our way through all the tmp files and remove them
$files = array(
-// BASE.'tmp/mail', // not used?? FIXME
-// BASE.'tmp/pods', // not used?? FIXME
BASE.'tmp/css', // exponent minified css cache
BASE.'tmp/minify', // minify cache
BASE.'tmp/pixidou', // (new) pixidou cache
-// BASE.'framework/modules/pixidou/images', // (old) pixidou cache
BASE.'tmp/rsscache', // magpierss cache
BASE.'tmp/views_c', // smarty cache
BASE.'tmp/cache', // alternate smarty cache
BASE.'tmp/img_cache', // phpThumb cache includes subfolders
+ BASE.'tmp/extensionuploads', // extensions are uploaded here, includes subfolders
);
// delete the files.

0 comments on commit 422e71e

Please sign in to comment.