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):
- 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