You're thinking of 2 different kinds of caching.  When thinking of the type
of caching that Zend_Cache does, think *output*.  Output from a given
function, page, class or block of code.  The APC opcode cache is completely
separate.  However, APC does have a variable cache, which is what Zend_Cache
is using to store that output when using the APC backend.  If you are
running APC, it will automatically cache the opcodes for any files you use,
but that is completely separate from Zend Framework.
 
Kevin Schroeder
Technical Consultant
Zend Technologies, Ltd.

www.zend.com
 
 
 
> -----Original Message-----
> From: Nogyara [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 19, 2008 4:47 PM
> To: [email protected]
> Subject: [fw-general] Caching of MVC and other ZF components
> 
> 
> Hi all ZFers,
> just used ZF for my 1st project and the work with it is really great. Now
> it's near to be finished but before it can be runned, caching support must
> be enabled to avoid performance issues for end users.
> I've just read manual for Zend_Cache from top to down, I know now, that
> the
> best backend to be used is APC for its great performance when storing
> interpreted PHP code in shared memory but I don't know how to use it.
> I'd like to cache opcodes of all ZF classes used in project forever
> (lifetime set to null) but not sure how to make it. Using
> Zend_Cache_Frontend_File to cache all relevant ZF files does not help
> since
> it stores just content, not the interpreted PHP code, right?
> Using of Zend_Cache_Frontend_Class needs concrete object to pass to work
> correctly, otherwise it is useful only for the static calls when class
> name
> passed, Zend_Cache_Frontend_Function is not good for OOP and
> Zend_Cache_Frontend_Output and Zend_Cache_Frontend_Page are another story,
> not intended for this.
> So how can one cache opcodes of all used classes (of ZF at least) in
> shared
> memory?
> I believe that the answer is pretty simple, every ZF project uses caching,
> but neither googling or searching this mailing list archive gave me answer
> for this.
> 
> Few lines of code would be warmly welcome :), if you can share some.
> 
> Thanks in advance
> --
> View this message in context: http://www.nabble.com/Caching-of-MVC-and-
> other-ZF-components-tp15576554s16154p15576554.html
> Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to