diff --git a/system/src/Grav/Common/Cache.php b/system/src/Grav/Common/Cache.php index 47cf3fa52..f92c53448 100644 --- a/system/src/Grav/Common/Cache.php +++ b/system/src/Grav/Common/Cache.php @@ -248,7 +248,7 @@ class Cache extends Getters foreach ($remove_paths as $stream) { // Convert stream to a real path - $path = $locator->findResource($stream); + $path = $locator->findResource($stream, true, true); // Make sure path exists before proceeding, otherwise we would wipe ROOT_DIR if (!$path) throw new \RuntimeException("Stream '{$stream}' not found", 500);