- Publicity:
Public Only
All
site-nodes-init.tcl
- Location:
- packages/acs-tcl/tcl/site-nodes-init.tcl
- Created:
- 2000-09-07
- Author:
- rhs@mit.edu
- CVS Identification:
$Id: site-nodes-init.tcl,v 1.10 2024/09/11 06:15:48 gustafn Exp $
Procedures in this file
Detailed information
[
hide source ]
| [
make this
the default ]
Content File Source
ad_library {
@author rhs@mit.edu
@creation-date 2000-09-07
@cvs-id $Id: site-nodes-init.tcl,v 1.10 2024/09/11 06:15:48 gustafn Exp $
}
nsv_set site_nodes_mutex mutex [ns_mutex create oacs:site_nodes]
site_node::init_cache
if {[namespace which ns_urlspace] ne "" && [::acs::dc info lookup method call] ne ""} {
set extraPaths [parameter::get \
-package_id [apm_package_id_from_key acs-tcl] \
-parameter SiteNodesPrefetch \
-default {}]
foreach path [list /repository /resources {*}$extraPaths] {
set node_id [site_node::get_node_id -url $path]
set cmd [list ns_urlspace set -key sitenode $path/* $node_id]
ns_log notice "--- precache <$cmd> -> <$node_id>"
{*}$cmd
}
}