Skip to content

Commit

Permalink
full page caching is not storing cached copy in the cache/ folder but…
Browse files Browse the repository at this point in the history
… creates a cache file because of a bad path + code whitespace fixes for clarity
  • Loading branch information
pascalchevrel committed Apr 27, 2012
1 parent b5c2590 commit d6e9ffc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.php
Expand Up @@ -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']) ||
Expand Down

0 comments on commit d6e9ffc

Please sign in to comment.