From 801756e7e69cfc8a22d8c1c612a31391872c35bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sat, 25 Aug 2007 09:25:49 +0000 Subject: #111127 by chx: cache node_load(), so heavy operations loading data from external sources and only invoked once (note that you should do everything dynamic in the view op, not the load op) --- modules/system/system.install | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index ca4412853..b07441ec9 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -3526,6 +3526,30 @@ function system_update_6027() { return $ret; } +/** + * Add the node load cache table. + */ +function system_update_6028() { + $ret = array(); + + // Create the cache_node table. + $schema['cache_node'] = 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($ret, 'cache_node', $schema['cache_node']); + + return $ret; +} + /** * @} End of "defgroup updates-5.x-to-6.x" * The next series of updates should start at 7000. -- cgit v1.2.3