Memcache Application Object

Has anyone used Memcache before to cache an entire application object with its components so it won’t have to boot up during each request? I think this will help us a great deal saving the time to parse the config and load components.

Bear in mind that memcached sets a limit of 1MB for each stored object by default because of performance concerns. I suspect that you’d be better off using an opcode cache such as EAccelerator, APC or XCache.

Keith, would such caching engines be able to cache the entire application state?

They don’t cache state, they cache compiled code so that the files don’t have to be interpreted in every request. It’s one of the easier ways to speed up your application.