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