site_node::init_cache (private)

 site_node::init_cache

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

Initialize the site node cache; actually, this means flushing the cache in case we have a root site node.

Partial Call Graph (max 5 caller/called nodes):
%3 test_site_node_update_cache site_node_update_cache (test acs-tcl) site_node::init_cache site_node::init_cache test_site_node_update_cache->site_node::init_cache db_0or1row db_0or1row (public) site_node::init_cache->db_0or1row packages/acs-tcl/tcl/site-nodes-init.tcl packages/acs-tcl/ tcl/site-nodes-init.tcl packages/acs-tcl/tcl/site-nodes-init.tcl->site_node::init_cache packages/bug-tracker/www/admin/project-edit.tcl packages/bug-tracker/ www/admin/project-edit.tcl packages/bug-tracker/www/admin/project-edit.tcl->site_node::init_cache

Testcases:
site_node_update_cache
Source code:
    #ns_log notice "site_node::init_cache"
    if {[db_0or1row get_root_node {
        select node_id as root_node_id
        from site_nodes
        where parent_id is null
    }]} {
        #
        # If we are called during the *-init procs, the database
        # interface might not be initialized yet. However, in this
        # situation, there is nothing to flush yet.
        #
        ::acs::site_node flush_cache -node_id $root_node_id
    }
    #ns_log notice "site_node::init_cache $root_node_id DONE"
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: