diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-27 17:50:10 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-27 17:50:10 +0000 |
commit | e130f20871a6d9f2cf8acccbb2f9227a9516408e (patch) | |
tree | 71c3dff6b31131052c48284c5a3f3cb8bc31a507 /modules/update/update.fetch.inc | |
parent | 0fa792bdd1e0f0a42a760b88ab545553dc5ccada (diff) | |
download | brdo-e130f20871a6d9f2cf8acccbb2f9227a9516408e.tar.gz brdo-e130f20871a6d9f2cf8acccbb2f9227a9516408e.tar.bz2 |
#200028 by agentrickard, dww: cache more project module data, so there is less burden on Drupal when generating admin pages (performance)
Diffstat (limited to 'modules/update/update.fetch.inc')
-rw-r--r-- | modules/update/update.fetch.inc | 7 |
1 files changed, 7 insertions, 0 deletions
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()); |