Skip to content

Commit

Permalink
FIxed Caching of Staticpages
Browse files Browse the repository at this point in the history
Fixed cache file not created for page if cache was set to -1 and was just a normal static page (ie not a template or php).
  • Loading branch information
eSilverStrike committed Jan 27, 2020
1 parent 3b75b79 commit b590553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/staticpages/functions.inc
Expand Up @@ -1922,7 +1922,7 @@ function SP_render_content($A)
$template_id = $A['template_id'];

// Retrieve non php staticpage from cache
if ($cache_time > -1 AND !$draft_flag) {
if (($cache_time > 0 || $cache_time == -1) AND !$draft_flag) {
$cache_found = false;

// Don't need to cache per theme since not rendered in a block yet
Expand Down

0 comments on commit b590553

Please sign in to comment.