summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-11-10 22:06:09 +0000
committerDries Buytaert <dries@buytaert.net>2009-11-10 22:06:09 +0000
commit3ccb55f2bd99a008577214296c17d2cf060874b5 (patch)
treedd65e92d7a254d5e5d9fff5e05b5d0da496a797f /modules
parent0629cfa95750270261f429880cb98974f790aa41 (diff)
downloadbrdo-3ccb55f2bd99a008577214296c17d2cf060874b5.tar.gz
brdo-3ccb55f2bd99a008577214296c17d2cf060874b5.tar.bz2
- Patch #627338 by catch: add a cache_bootstrap() bin for better performance/scalability.
Diffstat (limited to 'modules')
-rw-r--r--modules/simpletest/drupal_web_test_case.php2
-rw-r--r--modules/system/system.install17
2 files changed, 3 insertions, 16 deletions
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();