-- Sam Davey <[EMAIL PROTECTED]> wrote (on Tuesday, 29 July 2008, 09:15 AM -0700): > Thanks for the response (and for Zend_Form... but thats a different point). > > We do indeed use XCache on the server becasue we were having some > performance problems that it helped with. > > Clearing an error of this kind by restarting Apache caused me the most > confusion. But your suggestion makes perfect sense? > > So do you think XCache having problems with Zend_Loader? Or is spl_autoload > having the problem? > > I realise this is out of the scope of the framework... I am simply using > autoload to included the classes. Does anyone know how I might resolve this > problem? Surely a number of people use opcode cache. Are they having the > same problem with Zend_Loader?
When I deploy new code to a production server, I make a habit of flushing the opcode caches. Depending on the cache you use, you may be able to do this from an admin interface or a web service (Zend Platform, for instance, allows you to do it via the Platform GUI). What happens is that you get code with a new path that defines a class already cached -- and this is what makes the opcode cache start raising errors; it's not autoloading specific. My understanding is that APC and ZP do some work to ensure this doesn't happen, but even then, these issues can still occur. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
