util_memoize_flush_pattern (public)

 util_memoize_flush_pattern [ -log ] pattern

Defined in packages/acs-tcl/tcl/memoize-procs-naviserver.tcl

Loop through all cached entries, flushing all that match the pattern that was passed in.

Switches:
-log (optional, boolean)
Whether to log keys checked and flushed (useful for debugging).
Parameters:
pattern (required)
Match pattern (glob pattern like in 'string match $pattern ...').

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_check_composite_group acs_subsite_check_composite_group (test acs-subsite) util_memoize_flush_pattern util_memoize_flush_pattern test_acs_subsite_check_composite_group->util_memoize_flush_pattern test_acs_subsite_expose_bug_775 acs_subsite_expose_bug_775 (test acs-subsite) test_acs_subsite_expose_bug_775->util_memoize_flush_pattern test_group_localization group_localization (test acs-subsite) test_group_localization->util_memoize_flush_pattern acs::clusterwide acs::clusterwide util_memoize_flush_pattern->acs::clusterwide ad_log ad_log (public) util_memoize_flush_pattern->ad_log group::new group::new (public) group::new->util_memoize_flush_pattern workflow::case::flush_cache workflow::case::flush_cache (private) workflow::case::flush_cache->util_memoize_flush_pattern workflow::case::role::flush_cache workflow::case::role::flush_cache (private) workflow::case::role::flush_cache->util_memoize_flush_pattern

Testcases:
group_localization, acs_subsite_expose_bug_775, acs_subsite_check_composite_group
Source code:
    set nr_flushed [::acs::clusterwide ns_cache_flush -glob util_memoize $pattern]
    if {$log_p} {
        ad_log notice "util_memoize_flush_pattern: flushed $nr_flushed entries using the pattern: $pattern"
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: