From e130f20871a6d9f2cf8acccbb2f9227a9516408e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sun, 27 Jan 2008 17:50:10 +0000 Subject: #200028 by agentrickard, dww: cache more project module data, so there is less burden on Drupal when generating admin pages (performance) --- modules/update/update.fetch.inc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/update/update.fetch.inc') diff --git a/modules/update/update.fetch.inc b/modules/update/update.fetch.inc index 4ecdbc235..ce4c836a8 100644 --- a/modules/update/update.fetch.inc +++ b/modules/update/update.fetch.inc @@ -26,6 +26,13 @@ function _update_refresh() { global $base_url; include_once './modules/update/update.compare.inc'; + // Since we're fetching new available update data, we want to clear + // everything in our cache, to ensure we recompute the status. Note that + // this does not cause update_get_projects() to be recomputed twice in the + // same page load (e.g. when manually checking) since that function stashes + // its answer in a static array. + update_invalidate_cache(); + $available = array(); $data = array(); $site_key = md5($base_url . drupal_get_private_key()); -- cgit v1.2.3