fix time-based cache, from drupal cvs
This commit is contained in:
parent
7296e73f88
commit
e8937b8e8d
@ -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>
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user