The FileCacheBackend should cache with template basename.
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 18 Nov 2017 21:45:49 +0000 (16:45 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 18 Nov 2017 21:45:49 +0000 (16:45 -0500)
views/file_cache_backend.php

index b4c9952714ebb741cc35f1657dd5064afec12c4b..479ea2a1e6ba83ceb5e9c63a9082053c37326e79 100644 (file)
@@ -70,6 +70,6 @@ class FileCacheBackend implements CacheBackend
   /*! Returns the cache path for a given template name. */
   protected function _CachePath($name)
   {
-    return $this->cache_path . $name . '.phpi';
+    return $this->cache_path . basename($name) . '.phpi';
   }
 }