summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-08-19 08:08:45 +0000
committerDries Buytaert <dries@buytaert.net>2007-08-19 08:08:45 +0000
commit74292cd0625032180b2d178ae1c57e51462f121e (patch)
tree79ffaafcf1cd4c7b4a2dd2d33512228a0efb597c /modules/search
parente9c36f969752488ca33da745b15805c489932a30 (diff)
downloadbrdo-74292cd0625032180b2d178ae1c57e51462f121e.tar.gz
brdo-74292cd0625032180b2d178ae1c57e51462f121e.tar.bz2
- Patch #80951 by killes, yched et al: block caching.
Diffstat (limited to 'modules/search')
-rw-r--r--modules/search/search.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index e9faa5149..cff9314e3 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -144,6 +144,8 @@ function search_perm() {
function search_block($op = 'list', $delta = 0) {
if ($op == 'list') {
$blocks[0]['info'] = t('Search form');
+ // Not worth caching.
+ $blocks[0]['cache'] = BLOCK_NO_CACHE;
return $blocks;
}
else if ($op == 'view' && user_access('search content')) {