diff --git a/tasks/RebuildStaticCacheTask.php b/tasks/RebuildStaticCacheTask.php index 486ac729..99c044d0 100644 --- a/tasks/RebuildStaticCacheTask.php +++ b/tasks/RebuildStaticCacheTask.php @@ -47,7 +47,7 @@ class RebuildStaticCacheTask extends Controller { $cacheBaseDir = $page->getDestDir(); if(!file_exists($cacheBaseDir)) { - mkdir($cacheBaseDir); + Filesystem::makeFolder($cacheBaseDir); } if (file_exists($cacheBaseDir.'/lock') && !isset($_REQUEST['force'])) die("There already appears to be a publishing queue running. You can skip warning this by adding ?/&force to the URL.");