From: Earl Miles Date: Tue, 30 Jun 2009 21:57:22 +0000 (+0000) Subject: #503774 by dereine: Cache time failed to return the proper cutoff time. X-Git-Url: http://drupalcode.org/project/views.git/commitdiff_plain/47647ee6dbb8e1c6459aaf86daac3777778551bb #503774 by dereine: Cache time failed to return the proper cutoff time. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 3075d3e..dcd3000 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -12,6 +12,7 @@ CHANGELOG for Views 2 for Drupal 6 o #381346 by ayalon: Allow Taxonomy: Tid as a field, which is now needed for rewrites which may need tids. o #485296 by overall and deekayen: Remove unnecessary t() call. o #460838 by Darren Oh: Make DISTINCT more distinct. + o #503774 by dereine: Cache time failed to return the proper cutoff time. Other changes: o Implement a post_render hook (for themes too) and cache method. diff --git a/plugins/views_plugin_cache_time.inc b/plugins/views_plugin_cache_time.inc index 4aacc25..8085445 100644 --- a/plugins/views_plugin_cache_time.inc +++ b/plugins/views_plugin_cache_time.inc @@ -38,6 +38,7 @@ class views_plugin_cache_time extends views_plugin_cache { function cache_expire($type) { if ($lifespan = $this->options[$type . '_lifespan']) { $cutoff = time() - $lifespan; + return $cutoff; } else { return FALSE;