Skip to content

Commit

Permalink
only 200 pages get cached
Browse files Browse the repository at this point in the history
  • Loading branch information
gresakg committed Oct 2, 2014
1 parent c2997bd commit 5a51edc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.php
Expand Up @@ -56,7 +56,8 @@
//write cache if cache enabled
if($di['config']['cache']) {
$di['slim']->hook('slim.after', function() use ($di) {
$di['haiku']->setCache();
if($di['slim']->response->isOk())
$di['haiku']->setCache();
});
}
// for security reasons define stricr route conditions
Expand All @@ -66,7 +67,7 @@
\PHaiku\PHaiku::$basedir = __DIR__;

//define the version
\PHaiku\PHaiku::$version = "0.84.40.14";
\PHaiku\PHaiku::$version = "0.85.40.14";

//set the routes
\PHaiku\PHaiku::setRoutes($di);
Expand Down

0 comments on commit 5a51edc

Please sign in to comment.