From e2dead2a8a4ba582aca4ee15138b7e1a2f1d2127 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 8 Jan 2009 22:24:14 +0000 Subject: [PATCH] BUGFIX: Fixed minor error on dev/buildcache git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@69921 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tasks/RebuildStaticCacheTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/RebuildStaticCacheTask.php b/tasks/RebuildStaticCacheTask.php index 975c49d0..5aa3b59b 100644 --- a/tasks/RebuildStaticCacheTask.php +++ b/tasks/RebuildStaticCacheTask.php @@ -46,7 +46,7 @@ class RebuildStaticCacheTask extends Controller { } $urls = array_unique($urls); - if($removeAll) { + if($removeAll && file_exists("../cache")) { echo "Removing old cache... \n"; flush(); Filesystem::removeFolder("../cache", true);