lang::message::remove_from_cache (private)

 lang::message::remove_from_cache package_key message_key

Defined in packages/acs-lang/tcl/lang-message-procs.tcl

Delete a certain message key from the cache for all locales.

Parameters:
package_key (required)
message_key (required)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 lang::catalog::package_delete lang::catalog::package_delete (public) lang::message::remove_from_cache lang::message::remove_from_cache lang::catalog::package_delete->lang::message::remove_from_cache lang::message::unregister lang::message::unregister (public) lang::message::unregister->lang::message::remove_from_cache acs::clusterwide acs::clusterwide lang::message::remove_from_cache->acs::clusterwide db_list db_list (public) lang::message::remove_from_cache->db_list

Testcases:
No testcase defined.
Source code:
    set locales_list [db_list select_system_locales {
        select locale
        from   ad_locales
    }]

    # Delete from the cache for all enabled locales
    foreach locale $locales_list {
        set nsv_array lang_message_$locale
        set nsv_key "${package_key}.${message_key}"
        if { [nsv_exists $nsv_array $nsv_key] } {
            acs::clusterwide nsv_unset $nsv_array $nsv_key
        }
    }
Generic XQL file:
packages/acs-lang/tcl/lang-message-procs.xql

PostgreSQL XQL file:
packages/acs-lang/tcl/lang-message-procs-postgresql.xql

Oracle XQL file:
packages/acs-lang/tcl/lang-message-procs-oracle.xql

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