Skip to content

Commit

Permalink
Changes the semantics of cache switch.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsmanley authored and kolber committed Mar 17, 2011
1 parent ed2c3da commit 0abba6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/cache.inc.php
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion app/page-data.inc.php
Expand Up @@ -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;

}

Expand Down

0 comments on commit 0abba6d

Please sign in to comment.