Also a helper method get_temp_tables_cache() has been created for temporary tables cache operations.
$string['cachedef_search_results'] = 'Search results user data';
$string['cachedef_string'] = 'Language string cache';
$string['cachedef_tags'] = 'Tags collections and areas';
+$string['cachedef_temp_tables'] = 'Temporary tables cache';
$string['cachedef_userselections'] = 'Data used to persist user selections throughout Moodle';
$string['cachedef_yuimodules'] = 'YUI Module definitions';
$string['cachelock_file_default'] = 'Default file locking';
'staticaccelerationsize' => 3
),
+ // Store temporary tables information.
+ 'temp_tables' => array(
+ 'mode' => cache_store::MODE_REQUEST,
+ 'simplekeys' => true
+ ),
+
);
return cache::make('core', 'databasemeta', $properties);
}
+ /**
+ * Handle the creation and caching of the temporary tables.
+ *
+ * @return cache_application The temp_tables cachestore to complete operations on.
+ */
+ protected function get_temp_tables_cache() {
+ return cache::make('core', 'temp_tables');
+ }
+
/**
* Attempt to create the database
* @param string $dbhost The database host.