category_tree::reset_translation_cache (public)
category_tree::reset_translation_cache
Defined in packages/categories/tcl/category-trees-procs.tcl
Reloads all category tree translations in the cache.
- Author:
- Timo Hentschel <timo@timohentschel.de>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- category_init_procs
Source code: if {[nsv_names category_tree_translations] ne ""} { nsv_unset category_tree_translations } set tree_id_old 0 db_foreach reset_translation_cache { select tree_id, locale, name, description from category_tree_translations order by tree_id, locale } { if {$tree_id != $tree_id_old && $tree_id_old != 0} { nsv_set category_tree_translations $tree_id_old [array get tree_lang] unset tree_lang } set tree_id_old $tree_id set tree_lang($locale) [list $name $description] } if {$tree_id_old != 0} { nsv_set category_tree_translations $tree_id [array get tree_lang] }XQL Not present: Generic PostgreSQL XQL file: packages/categories/tcl/category-trees-procs-postgresql.xql
Oracle XQL file: packages/categories/tcl/category-trees-procs-oracle.xql