category::flush_translation_cache (public)

 category::flush_translation_cache category_id

Defined in packages/categories/tcl/categories-procs.tcl

Flushes category translation cache of one category.

Parameters:
category_id - category to be flushed.
Author:
Timo Hentschel <timo@timohentschel.de>

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_crud category_crud (test categories) category::flush_translation_cache category::flush_translation_cache test_category_crud->category::flush_translation_cache db_foreach db_foreach (public) category::flush_translation_cache->db_foreach category::delete category::delete (public) category::delete->category::flush_translation_cache category::update category::update (public) category::update->category::flush_translation_cache

Testcases:
category_crud
Source code:
    set translations [list]
    db_foreach flush_translation_cache {
        select t.locale, t.name, c.tree_id
        from category_translations t, categories c
        where t.category_id = :category_id
        and t.category_id = c.category_id
    } {
        lappend translations $locale $name
    }
    if {[llength $translations] > 0} {
        set translations [list $tree_id $translations]
    }
    nsv_set categories $category_id $translations
XQL Not present:
Generic
PostgreSQL XQL file:
packages/categories/tcl/categories-procs-postgresql.xql

Oracle XQL file:
packages/categories/tcl/categories-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: