Class ::acs::SiteNodeUrlspaceCache

::acs::SiteNodeUrlspaceCache[i] 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

  • class: ::nx::Class[i]
  • superclass: ::nx::Object[i]
  • mixinof: ::acs::site_node[i]

Methods (to be applied on instances)

  • flush_cache (scripted, public)

     <instance of acs::SiteNodeUrlspaceCache[i]> 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[i]> get_node_id -url url 

    Get 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.