From 63a15b383c27139b5544810f0b6105777165fd19 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Tue, 15 Jan 2008 08:29:25 +0000 Subject: [PATCH] - Patch #210141 by dww (with some modifications by me): implement hook_flush_caches(). --- modules/update/update.module | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/update/update.module b/modules/update/update.module index 33747ff474c0..887078334c3d 100644 --- a/modules/update/update.module +++ b/modules/update/update.module @@ -336,6 +336,16 @@ function update_get_available($refresh = FALSE) { return $available; } +/** + * Implementation of hook_flush_caches(). The function update.php (among others) + * calls this hook to flush the caches. Since we're running update.php, we are + * likely to install a new version of something, in which case, we want to check + * for available update data again. + */ +function update_flush_caches() { + return array('cache_update'); +} + /** * Invalidates any cached data relating to update status. */ -- GitLab