template::query::flush_cache (private)

 template::query::flush_cache cache_match

Defined in packages/acs-templating/tcl/query-procs.tcl

Flush the cached queries where the query name matches the specified string match

Parameters:
cache_match (required)
Name of query to match for cache flushing

Partial Call Graph (max 5 caller/called nodes):
%3 acs::clusterwide acs::clusterwide template::query::flush_cache template::query::flush_cache template::query::flush_cache->acs::clusterwide

Testcases:
No testcase defined.
Source code:
    # Flush persistent cache
    set names [ns_cache names template_query_cache]
    foreach name $names {
        if { [string match $cache_match $name] } {
            ns_log debug "template::query::flush_cache: FLUSHING QUERY (persistent): $name"
            acs::clusterwide ns_cache flush template_query_cache $name
            if {[ns_info name] ne "NaviServer"} {
                acs::clusterwide ns_cache flush template_timeout_cache $name
            }
        }
    }

    # Flush temporary cache
    set names [array names ::__template_query_persistent_cache]
    foreach name $names {
        if { [string match $cache_match $name] } {
            ns_log debug "template::query::flush_cache: FLUSHING QUERY (request): $name"
            unset ::__template_query_persistent_cache($name)
        }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: