summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurice Svay <maurice@svay.com>2012-04-29 22:59:53 -0700
committerMaurice Svay <maurice@svay.com>2012-04-29 22:59:53 -0700
commit578ff16f1175a4de229429a8e5317b403881595a (patch)
tree99b025d6cb856ee1a25de34d15999e551b96ea0e
parent2626ea9b5ce18cf980eb869efa691e3d078a76d0 (diff)
parentd6e9ffc753bd80ec79c717e78be9df0b928e7233 (diff)
downloadplanet-578ff16f1175a4de229429a8e5317b403881595a.tar
planet-578ff16f1175a4de229429a8e5317b403881595a.tar.gz
planet-578ff16f1175a4de229429a8e5317b403881595a.tar.bz2
planet-578ff16f1175a4de229429a8e5317b403881595a.tar.xz
planet-578ff16f1175a4de229429a8e5317b403881595a.zip
Merge pull request #40 from pascalchevrel/cache
full page caching is not storing cached copy in the cache/ folder but cr...
-rwxr-xr-xindex.php7
1 files 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 @@ 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']) ||