FIX Removing dependence on cache dir name

Removing the dependence that cache dir is actually named `cache`
This commit is contained in:
Daniel Hensby 2016-02-02 13:01:31 +00:00
parent f1e0cdd5dc
commit f3d3b570d6
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class RebuildStaticCacheTask extends BuildTask
if (Config::inst()->get('FilesystemPublisher', 'domain_based_caching')) {
// Glob each dir, then glob each one of those
foreach (glob(BASE_PATH . '/cache/*', GLOB_ONLYDIR) as $cacheDir) {
foreach (glob($cacheBaseDir .'/*', GLOB_ONLYDIR) as $cacheDir) {
foreach (glob($cacheDir.'/*') as $cacheFile) {
$searchCacheFile = trim(str_replace($cacheBaseDir, '', $cacheFile), '\/');