Index: openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl,v diff -u -r1.140.2.8 -r1.140.2.9 --- openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 10 Oct 2015 17:57:53 -0000 1.140.2.8 +++ openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 10 Oct 2015 20:02:01 -0000 1.140.2.9 @@ -4690,14 +4690,14 @@ if {$cache} { set hash [ns_sha1 $call] set dir [ad_tmpdir]/$key - set file_mame $dir/$id-$hash + set file_name $dir/$id-$hash ns_mutex eval [nsv_get ad_html_procs mutex] { if {![file isdirectory $dir]} {file mkdir $dir} - if {[file readable $file_mame]} { - set result [template::util::read_file $file_mame] + if {[file readable $file_name]} { + set result [template::util::read_file $file_name] } else { set result [{*}$call] - template::util::write_file $file_mame $result + template::util::write_file $file_name $result } } } else {