From d6e9ffc753bd80ec79c717e78be9df0b928e7233 Mon Sep 17 00:00:00 2001 From: Pascal Chevrel Date: Fri, 27 Apr 2012 11:56:04 +0200 Subject: [PATCH] full page caching is not storing cached copy in the cache/ folder but creates a cache file because of a bad path + code whitespace fixes for clarity --- index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index d6a2853..60db5ca 100755 --- a/index.php +++ b/index.php @@ -17,10 +17,11 @@ //Prepare output cache Cache::$enabled = false; -$cache_key = (count($items)) ? $items[0]->get_id() : ''; -$last_modified = (count($items)) ? $items[0]->get_date() : ''; +$cache_key = (count($items)) ? $items[0]->get_id() : ''; +$last_modified = (count($items)) ? $items[0]->get_date() : ''; $cache_duration = $PlanetConfig->getOutputTimeout()*60; -Cache::setStore(dirname(__FILE__).'/'.$conf['cachedir']); + +Cache::setStore(dirname(__FILE__) . '/' . $conf['cachedir'] . '/'); //Go display if (!isset($_GET['type']) ||