From 3ccb55f2bd99a008577214296c17d2cf060874b5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 10 Nov 2009 22:06:09 +0000 Subject: - Patch #627338 by catch: add a cache_bootstrap() bin for better performance/scalability. --- modules/simpletest/drupal_web_test_case.php | 2 +- modules/system/system.install | 17 ++--------------- 2 files changed, 3 insertions(+), 16 deletions(-) (limited to 'modules') diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 9b0bf7275..98f4445ba 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -1149,7 +1149,7 @@ class DrupalWebTestCase extends DrupalTestCase { */ protected function refreshVariables() { global $conf; - cache_clear_all('variables', 'cache'); + cache_clear_all('variables', 'cache_bootstrap'); $conf = variable_initialize(); } diff --git a/modules/system/system.install b/modules/system/system.install index 6c3f1b406..412d116b1 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -701,6 +701,8 @@ function system_schema() { 'primary key' => array('cid'), ); + $schema['cache_bootstrap'] = $schema['cache']; + $schema['cache_bootstrap']['description'] = 'Cache table for data required to bootstrap Drupal, may be routed to a shared memory cache.'; $schema['cache_form'] = $schema['cache']; $schema['cache_form']['description'] = 'Cache table for the form system to store recently built forms and their storage data, to be used in subsequent page requests.'; $schema['cache_page'] = $schema['cache']; @@ -709,8 +711,6 @@ function system_schema() { $schema['cache_menu']['description'] = 'Cache table for the menu system to store router information as well as generated link trees for various menu/page/user combinations.'; $schema['cache_path'] = $schema['cache']; $schema['cache_path']['description'] = 'Cache table for path alias lookup.'; - $schema['cache_registry'] = $schema['cache']; - $schema['cache_registry']['description'] = 'Cache table for the code registry system to remember what code files need to be loaded on any given page.'; $schema['date_format_type'] = array( 'description' => 'Stores configured date format types.', @@ -1962,19 +1962,6 @@ function system_update_7006() { ), 'primary key' => array('filename'), ); - $schema['cache_registry'] = array( - 'fields' => array( - 'cid' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''), - 'data' => array('type' => 'blob', 'not null' => FALSE, 'size' => 'big'), - 'expire' => array('type' => 'int', 'not null' => TRUE, 'default' => 0), - 'created' => array('type' => 'int', 'not null' => TRUE, 'default' => 0), - 'headers' => array('type' => 'text', 'not null' => FALSE), - 'serialized' => array('type' => 'int', 'size' => 'small', 'not null' => TRUE, 'default' => 0) - ), - 'indexes' => array('expire' => array('expire')), - 'primary key' => array('cid'), - ); - db_create_table('cache_registry', $schema['cache_registry']); db_create_table('registry', $schema['registry']); db_create_table('registry_file', $schema['registry_file']); registry_rebuild(); -- cgit v1.2.3