acs::SiteNodesCache method flush_pattern (public)

 <instance of acs::SiteNodesCache[i]> flush_pattern \
    [ -partition_key partition_key ] pattern

Defined in packages/acs-tcl/tcl/site-nodes-procs.tcl

Flush from the site-nodes caches certain information. The method hides the actual caching structure and is as well provided in conformance with the alternative implementations above. Depending on the specified pattern, it reroutes the flushing request to different caches.

Switches:
-partition_key (optional)
Parameters:
pattern (required)

Testcases:
No testcase defined.
Source code:
:flush_per_request_cache

switch -glob -- $pattern {
    id-*           {set cache site_nodes_id_cache}
    get_children-* -
    has_children   {set cache site_nodes_children_cache}
    default        {set cache site_nodes_cache}
}
::acs::$cache flush_pattern -partition_key $partition_key $pattern
Generic XQL file:
packages/acs-tcl/tcl/site-nodes-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/site-nodes-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/site-nodes-procs-oracle.xql

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