Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml,v diff -u -r1.31 -r1.32 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml 29 Jun 2004 15:50:18 -0000 1.31 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml 30 Jun 2004 07:40:32 -0000 1.32 @@ -983,11 +983,11 @@ Implement your proc as my_proc_not_cached - Create a version of your proc called my_proc which wraps the non-cached version in the caching mechanism. In this example, my_proc_not_cached takes one argument, -foo, so the wrapper passes that on. + Create a version of your proc called my_proc which wraps the non-cached version in the caching mechanism. In this example, my_proc_not_cached takes one argument, -foo, so the wrapper passes that on. The wrapper also uses the list command, to ensure that the arguments get passed correctly and to prevent commands passed in as arguments from being executed. ad_proc my_proc {-foo} { Get a cached version of my_proc. } { - return [util_memoize my_proc_not_cached -foo $foo] + return [util_memoize [list my_proc_not_cached -foo $foo]] }