From b3144ee921637fb8d1366054eb0f79c3db71afda Mon Sep 17 00:00:00 2001 From: Henrik Maier Date: Sun, 1 Nov 2015 18:55:33 +1000 Subject: [PATCH] Return resource even if not physically present --- system/src/Grav/Common/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);