diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-18 18:26:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-18 18:26:30 +0000 |
commit | 09b0283675f938c89a2c541b6649deb10e7c5040 (patch) | |
tree | b057e0dd997cbe6ab096c3651593768fbb76dcf4 /modules/update | |
parent | d4200e260003dc1e75cd27db8f1b286fa6a30931 (diff) | |
download | brdo-09b0283675f938c89a2c541b6649deb10e7c5040.tar.gz brdo-09b0283675f938c89a2c541b6649deb10e7c5040.tar.bz2 |
- Patch #692044 by Damien Tournoud, effulgentsia: a site with statistics module enabled is much slower in serving cached pages in D7 than in D6.
Diffstat (limited to 'modules/update')
-rw-r--r-- | modules/update/update.install | 7 | ||||
-rw-r--r-- | modules/update/update.module | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/modules/update/update.install b/modules/update/update.install index 00935f190..f324ce570 100644 --- a/modules/update/update.install +++ b/modules/update/update.install @@ -167,3 +167,10 @@ function update_update_7000() { $queue = DrupalQueue::get('update_fetch_tasks'); $queue->createQueue(); } + +/** + * Remove {cache_update}.headers columns. + */ +function update_update_7001() { + db_drop_field('cache_update', 'headers'); +} diff --git a/modules/update/update.module b/modules/update/update.module index 02bdabaef..1704fdfff 100644 --- a/modules/update/update.module +++ b/modules/update/update.module @@ -653,9 +653,6 @@ function theme_update_last_check($variables) { /** * Store data in the private update status cache table. * - * Note: this function completely ignores the {cache_update}.headers field - * since that is meaningless for the kinds of data we're caching. - * * @param $cid * The cache ID to save the data with. * @param $data @@ -671,7 +668,6 @@ function _update_cache_set($cid, $data, $expire) { $fields = array( 'created' => REQUEST_TIME, 'expire' => $expire, - 'headers' => NULL, ); if (!is_string($data)) { $fields['data'] = serialize($data); |