ENHANCEMENT: use FileSystem class to create cache directory to unsure the right permissions are set (from r103730)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112175 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-13 04:19:46 +00:00
parent 36fe2eab56
commit cb9e8481f9

View File

@ -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.");