[Zope] How to specify caching for ZSQL methods on file system

Martijn Pieters mj at zopatista.com
Thu Mar 2 09:34:54 EST 2006


On 3/2/06, Yuan HOng <hongyuan1306 at gmail.com> wrote:
> Can anyone give some clues as how to do this for ZSQL on FSDV? I
> suppose I might need to write some *.metadata file to specify these
> properties using FSDV?

You must specify the cache settings in the .zsql file itself, using a
<dtml-comment> block at the top. Here is an example:

<dtml-comment>
title: Retrieve the per_id of a given uid
connection_id: portal_cvix
arguments: uid
cache_time: 10
</dtml-comment>

'cache_time: 10' sets the caching time to 10 seconds.

--
Martijn Pieters


More information about the Zope mailing list