diff --git a/core/components/statcache/lib/StatCache.php b/core/components/statcache/lib/StatCache.php index 68e7e18..f31fdda 100644 --- a/core/components/statcache/lib/StatCache.php +++ b/core/components/statcache/lib/StatCache.php @@ -44,7 +44,8 @@ public function getStaticPath($resource, array $options = array()) { if (!$resource instanceof modResource) { return false; } - + + if ($resource->Context->config === null) $resource->Context->prepare(); $path = $resource->Context->getOption('statcache_path', MODX_BASE_PATH . 'statcache', $options); /* generate an absolute URI representation of the Resource to append to the path */