summaryrefslogtreecommitdiff
path: root/modules/node/node.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-23 06:03:38 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-23 06:03:38 +0000
commit17c6ce8078487575393bf4f1ac1ebe200aa257a0 (patch)
treece2b3f6c09998ea6aa06e44e92492d53ef830907 /modules/node/node.install
parent57d6dac0dc27204461f714ec5a93462ccdfe0b6b (diff)
downloadbrdo-17c6ce8078487575393bf4f1ac1ebe200aa257a0.tar.gz
brdo-17c6ce8078487575393bf4f1ac1ebe200aa257a0.tar.bz2
#898360 by sun: Add caching for node types.
Diffstat (limited to 'modules/node/node.install')
-rw-r--r--modules/node/node.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.install b/modules/node/node.install
index e50571ab2..4cf1d04b0 100644
--- a/modules/node/node.install
+++ b/modules/node/node.install
@@ -521,7 +521,7 @@ function node_update_7004() {
// Map old preview setting to new values order.
$original_preview ? $original_preview = 2 : $original_preview = 1;
- drupal_static_reset('_node_types_build');
+ node_type_cache_reset();
// Apply original settings to all types.
foreach (_update_7000_node_get_types() as $type => $type_object) {
@@ -552,7 +552,7 @@ function node_update_7006(&$sandbox) {
$sandbox['#finished'] = 0;
// Get node type info for every invocation.
- drupal_static_reset('_node_types_build');
+ node_type_cache_reset();
if (!isset($sandbox['total'])) {
// Initial invocation.