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.
Page 1 of 1
Memcache Application Object
#2
Posted 20 November 2012 - 10:19 AM
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.
#3
Posted 20 November 2012 - 12:08 PM
Keith, on 20 November 2012 - 10:19 AM, said:
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?
#4
Posted 20 November 2012 - 12:45 PM
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.
Share this topic:
Page 1 of 1

Help












