mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-10-22 14:05:54 +02:00
FIX Removing dependence on cache dir name
Removing the dependence that cache dir is actually named `cache`
This commit is contained in:
parent
f1e0cdd5dc
commit
f3d3b570d6
@ -114,7 +114,7 @@ class RebuildStaticCacheTask extends BuildTask
|
|||||||
|
|
||||||
if (Config::inst()->get('FilesystemPublisher', 'domain_based_caching')) {
|
if (Config::inst()->get('FilesystemPublisher', 'domain_based_caching')) {
|
||||||
// Glob each dir, then glob each one of those
|
// 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) {
|
foreach (glob($cacheDir.'/*') as $cacheFile) {
|
||||||
$searchCacheFile = trim(str_replace($cacheBaseDir, '', $cacheFile), '\/');
|
$searchCacheFile = trim(str_replace($cacheBaseDir, '', $cacheFile), '\/');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user