mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 11:17:42 +02:00
fix for nested config changes
Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
@@ -322,6 +322,13 @@ class ConfigServiceProvider implements ServiceProviderInterface
|
||||
foreach ($basePaths as $path) {
|
||||
if (is_dir($path)) {
|
||||
$directories[$path] = filemtime($path);
|
||||
// Also track config subdirectories for granular invalidation (e.g., plugins/, themes/)
|
||||
$iterator = new DirectoryIterator($path);
|
||||
foreach ($iterator as $dir) {
|
||||
if ($dir->isDir() && !$dir->isDot()) {
|
||||
$directories[$dir->getPathname()] = $dir->getMTime();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} elseif ($type === 'blueprints') {
|
||||
|
||||
Reference in New Issue
Block a user