- Patch #692044 by Damien Tournoud, effulgentsia, jbrown: a site with statistics module enabled is much slower in serving cached pages in D7 than in D6.
parent
0444684a2b
commit
63dba2a07d
|
@ -164,11 +164,6 @@ function update_prepare_d7_bootstrap() {
|
|||
'not null' => TRUE,
|
||||
'default' => 0,
|
||||
),
|
||||
'headers' => array(
|
||||
'description' => 'Any custom HTTP headers to be added to cached data.',
|
||||
'type' => 'text',
|
||||
'not null' => FALSE,
|
||||
),
|
||||
'serialized' => array(
|
||||
'description' => 'A flag to indicate whether content is serialized (1) or not (0).',
|
||||
'type' => 'int',
|
||||
|
|
|
@ -387,3 +387,10 @@ function block_update_7004() {
|
|||
// Rebuild theme data, so the new 'help' region is identified.
|
||||
system_rebuild_theme_data();
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove {cache_block}.headers column.
|
||||
*/
|
||||
function block_update_7005() {
|
||||
db_drop_field('cache_block', 'headers');
|
||||
}
|
||||
|
|
|
@ -2380,7 +2380,7 @@ function system_update_7053() {
|
|||
* Remove {cache_*}.headers columns.
|
||||
*/
|
||||
function system_update_7054() {
|
||||
$cache_tables = array('cache', 'cache_bootstrap', 'cache_filter', 'cache_form', 'cache_menu', 'cache_page', 'cache_path');
|
||||
$cache_tables = array('cache', 'cache_filter', 'cache_form', 'cache_menu', 'cache_page', 'cache_path');
|
||||
foreach ($cache_tables as $table) {
|
||||
db_drop_field($table, 'headers');
|
||||
}
|
||||
|
|
|
@ -169,7 +169,7 @@ function update_update_7000() {
|
|||
}
|
||||
|
||||
/**
|
||||
* Remove {cache_update}.headers columns.
|
||||
* Remove {cache_update}.headers column.
|
||||
*/
|
||||
function update_update_7001() {
|
||||
db_drop_field('cache_update', 'headers');
|
||||
|
|
Loading…
Reference in New Issue