From c2997bd9b4f56151db0a7eac0e631f0139f0c73d Mon Sep 17 00:00:00 2001 From: Gregor G Date: Thu, 2 Oct 2014 19:09:06 +0200 Subject: [PATCH] fixed a bug in caching --- index.php | 2 +- src/PHaiku/PHaiku.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 30e9948..ab951ee 100644 --- a/index.php +++ b/index.php @@ -66,7 +66,7 @@ \PHaiku\PHaiku::$basedir = __DIR__; //define the version -\PHaiku\PHaiku::$version = "0.83.40.14"; +\PHaiku\PHaiku::$version = "0.84.40.14"; //set the routes \PHaiku\PHaiku::setRoutes($di); diff --git a/src/PHaiku/PHaiku.php b/src/PHaiku/PHaiku.php index b348950..4c548a3 100644 --- a/src/PHaiku/PHaiku.php +++ b/src/PHaiku/PHaiku.php @@ -391,7 +391,7 @@ private function getBrowserLanguage() { } protected function getCache($routename) { - if($this->nocache) return; + if($this->nocache) return false; $this->cachekey = str_replace("/", ".", $routename.$this->env['PATH_INFO']); if($this->cache->has($this->cachekey)) { $this->cached = TRUE;