Index: blockcache.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/blockcache/blockcache.module,v
retrieving revision 1.7.2.4
diff -u -p -r1.7.2.4 blockcache.module
--- blockcache.module 10 Apr 2007 17:55:27 -0000 1.7.2.4
+++ blockcache.module 31 May 2007 09:38:23 -0000
@@ -62,7 +62,7 @@ function blockcache_block($op = 'list',
'user' => t('A user is added/updated/deleted'),
'login' => t('A user logs in our out'),
),
- '#default_value' => variable_get('bc_refresh_'. $delta, array('node', 'comment', 'user', 'login')),
+ '#default_value' => variable_get('bc_refresh_'. $delta, array()),
'#description' => t('If the contents of this block updates with changes to the site, select which changes affect the block contents. If you are unsure, leave all checked. Notes:
1) If none are checked AND cache lifetime is left blank, the contents of this block will NEVER refresh.
2) This setting will essentially cut short the cache lifetime set above when nodes/comments/users are changed. For instance, if you have comments selected here and the lifetime is set to 1800 (30 minutes) and your site gets comments every 2 minutes, the block will update every 2 minutes.'),
);
$r = db_fetch_object(db_query('SELECT * FROM {bc_blocks} WHERE my_delta = %d', $delta));
@@ -299,7 +299,7 @@ function _blockcache_cleanup($type) {
$result = db_query('SELECT * FROM {bc_blocks}');
while ($r = db_fetch_object($result)) {
if (module_exists($r->module)) {
- $refresh = variable_get('bc_refresh_'. $r->my_delta, array($type => $type));
+ $refresh = variable_get('bc_refresh_'. $r->my_delta, array());
if ($refresh[$type]) {
$likes[] = 'cid LIKE "bc_'. db_escape_string($r->my_delta) .'::%"';
if ($debug) {