Skip to content

Commit

Permalink
fixed a bug in caching
Browse files Browse the repository at this point in the history
  • Loading branch information
gresakg committed Oct 2, 2014
1 parent 85433f9 commit c2997bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/PHaiku/PHaiku.php
Expand Up @@ -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;
Expand Down

0 comments on commit c2997bd

Please sign in to comment.