Commit 63a15b38 authored by Dries's avatar Dries
Browse files

- Patch #210141 by dww (with some modifications by me): implement hook_flush_caches().

parent 945b3375
......@@ -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.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment