Skip to content

Commit

Permalink
Merge pull request #40 from pascalchevrel/cache
Browse files Browse the repository at this point in the history
full page caching is not storing cached copy in the cache/ folder but cr...
  • Loading branch information
mauricesvay committed Apr 30, 2012
2 parents 2626ea9 + d6e9ffc commit 578ff16
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 578ff16

Please sign in to comment.