Re: [SMARTY] newbie caching question

From: Date: Tue, 23 Apr 2002 20:18:33 +0000
Subject: Re: [SMARTY] newbie caching question
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3857@lists.php.net to get a copy of this message
cache_id is something you define. Usually you can get away with using $_ENV['REQUEST_URI'] as the cache_id, which will give you a unique cache for each URL. If you want different caches for the same URL, you'll have to generate a cache_id on your own, maybe using md5() with some data from your application. Monte Christian Calloway wrote:
Just started using smarty, and I like it so much I'm going to rewrite my entire site, replacing fasttemplate. I've been pouring over the docs, but there's one thing that I can't seem to find. I've read that if you want multiple caches for a given template, which I do, you can pass a cache id to the is_cached method as an optional parameter. Where does one get the cache id? Its not a class param and I don't see anyway to assign one. Thanks ppl.
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

« previous php.smarty.general (#3857) next »