diff options
author | Pascal Chevrel <pascal@chevrel.org> | 2012-04-27 11:56:04 +0200 |
---|---|---|
committer | Pascal Chevrel <pascal@chevrel.org> | 2012-04-27 11:56:04 +0200 |
commit | d6e9ffc753bd80ec79c717e78be9df0b928e7233 (patch) | |
tree | 10f55540fa71f2571c9c78581cbe14726f9435cd | |
parent | b5c2590daaa73999560343a7a8d3867dc7f2beb8 (diff) | |
download | planet-d6e9ffc753bd80ec79c717e78be9df0b928e7233.tar planet-d6e9ffc753bd80ec79c717e78be9df0b928e7233.tar.gz planet-d6e9ffc753bd80ec79c717e78be9df0b928e7233.tar.bz2 planet-d6e9ffc753bd80ec79c717e78be9df0b928e7233.tar.xz planet-d6e9ffc753bd80ec79c717e78be9df0b928e7233.zip |
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
-rwxr-xr-x | index.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -17,10 +17,11 @@ if (0 < $Planet->loadOpml(dirname(__FILE__).'/custom/people.opml')) { //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']) || |