- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::acs::SiteNodeUrlspaceCache
::acs::SiteNodeUrlspaceCache create ...Cache site-node information via ns_urlspace. We can use the URL trie, which supports tree match operations, for tree information. This means that for example for .vuh handlers it is not necessary to cache the full url for obtaining the site-node, like it was until now: 3839 id-/storage/view/installers/windows-installer/installer.htm 3839 id-/storage/view/aolserver/install.tgz 3839 id-/storage/view/tutorial/OpenACS_Tutorial.htm 3839 id-/storage/view/openacs-dotlrn-conference-2007-spring/Methodology_ALPE.pdf 3839 id-/storage/view/xowiki-resources/Assessment.jpg 3839 id-/storage/view/tutorial-page-map.png ... Providing a single entry like ns_urlspace set -key sitenode /storage/* 3839 is sufficient for replacing all entries above.
Defined in packages/acs-tcl/tcl/site-nodes-procs.tcl
Class Relations
Methods (to be applied on instances)
flush_cache (scripted, public)
<instance of acs::SiteNodeUrlspaceCache> flush_cache \ -node_id node_id [ -with_subtree on|off ] [ -url url ]Cleanup in the urlspace tree: Clear always the full subtree via "-recurse" (maybe not always necessary).
- Switches:
- -node_id (required)
- -with_subtree (optional, boolean, defaults to
"true"
)- -url (optional)
- Testcases:
- No testcase defined.
get_node_id (scripted, public)
<instance of acs::SiteNodeUrlspaceCache> get_node_id -url urlGet node_id for the provided URL. We have to determine the partial URL for determining the site node.
- Switches:
- -url (required)
- Returns:
- node_id (integer)
- Testcases:
- No testcase defined.
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables