diff --git a/core/SSViewer.php b/core/SSViewer.php index 6ed16af82..818c92398 100755 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -374,7 +374,7 @@ class SSViewer { } if(isset($_GET['debug_profile'])) Profiler::mark("SSViewer::process", " for $template"); - $cacheFile = TEMP_FOLDER . "/.cache" . str_replace(array('\\','/',':'),'.',realpath($template)); + $cacheFile = TEMP_FOLDER . "/.cache" . str_replace(array('\\','/',':'), '.', Director::makeRelative(realpath($template))); $lastEdited = filemtime($template);