You are here

function taxonomy_manager_merge_history_update_cache in Taxonomy Manager 5

Same name and namespace in other branches
  1. 6.2 taxonomy_manager.module \taxonomy_manager_merge_history_update_cache()
  2. 6 taxonomy_manager.module \taxonomy_manager_merge_history_update_cache()

sets / updates cache for merging history

2 calls to taxonomy_manager_merge_history_update_cache()
taxonomy_manager_merge_get_main_term in ./taxonomy_manager.module
helper function for getting out the main term of former merged term (which no long exists)
taxonomy_manager_merge_history_update in ./taxonomy_manager.module
inserts merging information (main_tid - merged_tid ) into taxonomy_manager_merge and updates cache, which is used to reconstructs taxonomy/term pages

File

./taxonomy_manager.module, line 1341
Taxonomy Manager

Code

function taxonomy_manager_merge_history_update_cache() {
  $merged_terms = array();
  $result = db_query("SELECT * FROM {taxonomy_manager_merge}");
  while ($data = db_fetch_object($result)) {
    $merged_terms[$data->merged_tid] = $data->main_tid;
  }
  cache_set('taxonomy_manager_merge', 'cache', serialize($merged_terms));
}