mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
4cf2ee5e38
commit
e2dead2a8a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user