Source
1196
1197 $cacheFile = TEMP_FOLDER . "/.cache"
1198 . str_replace(array('\\','/',':'), '.', Director::makeRelative(realpath($template)));
1199 $lastEdited = filemtime($template);
1200
1201 if(!file_exists($cacheFile) || filemtime($cacheFile) < $lastEdited) {
1202 $content = file_get_contents($template);
1203 $content = $this->parseTemplateContent($content, $template);
1204
1205 $fh = fopen($cacheFile,'w');
1206 fwrite($fh, $content);
1207 fclose($fh);
1208 }
1209
1210 $underlay = array('I18NNamespace' => basename($template));
1211
Trace
- fopen(/tmp/silverstripe-cache-php5.6.40-home-u5812631-public_html-saunalesavanchets.com/u5812631/.cache.themes.sauna.templates.Layout.PricelistPage.ss,w)
SSViewer.php:1205
- SSViewer->process(PricelistPage_Controller,)
SSViewer.php:1222
- SSViewer->process(PricelistPage_Controller)
Controller.php:211
- Controller->handleAction(SS_HTTPRequest,index)
RequestHandler.php:200
- RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:158
- Controller->handleRequest(SS_HTTPRequest,DataModel)
ContentController.php:174
- ContentController->handleRequest(SS_HTTPRequest,DataModel)
ModelAsController.php:75
- ModelAsController->handleRequest(SS_HTTPRequest,DataModel)
Director.php:385
- Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:149
- Director::direct(/price-list/,DataModel)
main.php:188