fix time-based cache, from drupal cvs

This commit is contained in:
espie 2009-09-23 10:46:51 +00:00
parent 7296e73f88
commit e8937b8e8d
2 changed files with 13 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.3 2009/07/15 10:33:39 espie Exp $
# $OpenBSD: Makefile,v 1.4 2009/09/23 10:46:51 espie Exp $
COMMENT = drupal views, smart content lists
DISTNAME = views-6.x-2.6
PKGNAME = drupal6-views-2.6
PKGNAME = drupal6-views-2.6p0
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-plugins_views_plugin_cache_time_inc,v 1.1 2009/09/23 10:46:51 espie Exp $
--- plugins/views_plugin_cache_time.inc.orig Thu Jun 4 01:39:52 2009
+++ plugins/views_plugin_cache_time.inc Wed Sep 23 12:45:37 2009
@@ -38,6 +38,7 @@ class views_plugin_cache_time extends views_plugin_cac
function cache_expire($type) {
if ($lifespan = $this->options[$type . '_lifespan']) {
$cutoff = time() - $lifespan;
+ return $cutoff;
}
else {
return FALSE;