Hi Simon,

You could possibly tag it and use that tag to remove the cache after it has
been saved, or you could create your own page caching with an option for
whether or not to save it. The basic Zend_Cache usage relies on you to do
the saving.

Cheers,
Steven

-----Original Message-----
From: Simon Mundy [mailto:[EMAIL PROTECTED] 
Sent: Friday, 7 March 2008 8:31 AM
To: Zend Framework
Subject: [fw-general] Zend_Cache and Page caching

Hi there - I have a quick Q about caching pages using the Zend_Cache  
'Page' frontend.

Is there any way of telling Zend_Cache not to store the page after the  
hit has been tested?

I.e. what I'd like to be able to do is to allow page caching as per  
normal for 99% of my pages, but in some controller/actions have the  
ability to cancel the page 'save' through the cache instance so the  
page is never cached? I realise I can perform a regex in the caching  
options but that's effectively a static rule. I'd like to be able to  
more closely control this based on user state and so forth.

Look forward to any help/hints

Cheerio!

--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "

202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654  
4124
http://www.peptolab.com



Reply via email to