workflow::action::flush_cache (private)

 workflow::action::flush_cache -workflow_id workflow_id

Defined in packages/workflow/tcl/action-procs.tcl

Flush all caches related to actions for the given workflow_id. Used internally by the workflow API only.

Switches:
-workflow_id (required)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::action::callback_insert workflow::action::callback_insert (public) workflow::action::flush_cache workflow::action::flush_cache workflow::action::callback_insert->workflow::action::flush_cache workflow::flush_cache workflow::flush_cache (private) workflow::flush_cache->workflow::action::flush_cache util_memoize_flush util_memoize_flush (public) workflow::action::flush_cache->util_memoize_flush

Testcases:
No testcase defined.
Source code:
    # Flush the request cache
    global __workflow_action_data,${workflow_id}
    if { [info exists __workflow_action_data,${workflow_id}] } {
        foreach action_id [set __workflow_action_data,${workflow_id}(action_ids)] {
            global __workflow_one_action,$action_id

            if { [info exists __workflow_one_action,$action_id] } {
                unset __workflow_one_action,$action_id
            }
        }

        unset __workflow_action_data,${workflow_id}
    }

    # Flush the thread global cache
    util_memoize_flush [list workflow::action::get_all_info_not_cached -workflow_id $workflow_id]
Generic XQL file:
packages/workflow/tcl/action-procs.xql

PostgreSQL XQL file:
packages/workflow/tcl/action-procs-postgresql.xql

Oracle XQL file:
packages/workflow/tcl/action-procs-oracle.xql

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