Permalink
Browse files

Changes the semantics of cache switch.

  • Loading branch information...
1 parent ed2c3da commit 0abba6d63b978db66c5741996b457f562ca86cdd @michaelsmanley michaelsmanley committed with Mar 10, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/cache.inc.php
  2. +1 −1 app/page-data.inc.php
View
@@ -39,7 +39,7 @@ function create($route) {
ob_start();
echo $page->parse_template();
# if cache folder is writable, write to it
- if(is_writable('./app/_cache') && $page->data['@cache_page']) $this->write_cache();
+ if(is_writable('./app/_cache') && !$page->data['@bypass_cache']) $this->write_cache();
else if ($this->is_commentable()) echo "\n".$this->comment_tags['begin'].' Stacey('.Stacey::$version.'). '.$this->comment_tags['end'];
# end buffer
ob_end_flush();
View
@@ -144,7 +144,7 @@ static function create_vars($page) {
$page->is_first = $page->data['@index'] == 1;
# @cache_page
- $page->cache_page = (isset($page->data['@cache_page']) && ($page->data['@cache_page'] == true)) || (!isset($page->data['@cache_page']));
+ $page->bypass_cache = isset($page->data['@bypass_cache']) ? $page->data['@bypass_cache'] : false;
}

0 comments on commit 0abba6d

Please sign in to comment.