From 61f4dfc982fc6c1c20377691e2adfb3e4c5f68f9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 16 May 2009 19:07:02 +0000 Subject: - Patch #456824 by catch: add better caching to drupal_lookup_path(). --- modules/system/system.install | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index a2f0df89c..3538ff2b0 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -611,6 +611,8 @@ function system_schema() { $schema['cache_page']['description'] = 'Cache table used to store compressed pages for anonymous users, if page caching is enabled.'; $schema['cache_menu'] = $schema['cache']; $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.'; @@ -3495,6 +3497,17 @@ function system_update_7023() { return $ret; } +/** + * Create the cache_path table. + */ +function system_update_7024() { + $ret = array(); + $schema['cache_path'] = drupal_get_schema_unprocessed('system', 'cache'); + $schema['cache_path']['description'] = t('Cache table used for path alias lookups.'); + db_create_table($ret, 'cache_path', $schema['cache_path']); + return $ret; +} + /** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. -- cgit v1.2.3