Index: openacs-4/packages/acs-core-docs/www/tutorial-caching.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-caching.html,v diff -u -N -r1.5.4.2 -r1.5.4.3 --- openacs-4/packages/acs-core-docs/www/tutorial-caching.html 31 May 2008 20:46:16 -0000 1.5.4.2 +++ openacs-4/packages/acs-core-docs/www/tutorial-caching.html 4 Oct 2008 23:12:42 -0000 1.5.4.3 @@ -1,5 +1,5 @@ -Basic Caching

Basic Caching

Based on a post by Dave Bauer.

+Basic Caching

Basic Caching

Based on a post by Dave Bauer.

OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.
  1. Implement your proc as my_proc_not_cached

  2. 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} {