From 17c6ce8078487575393bf4f1ac1ebe200aa257a0 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 23 Nov 2010 06:03:38 +0000 Subject: #898360 by sun: Add caching for node types. --- modules/node/node.install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/node/node.install') 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. -- cgit v1.2.3