eAccelerator and Memcache

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

eAccelerator and Memcache

Post by GeXus »

Does anyone know if you can run both eAccelerator and memcache together? From what I understand eAccelerator creates a cached copy of the compiled php, so it doesn't have to re-compile each time, could you couple that with memcache for DB queries?
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

eAccelerator or apc cache opcode from compiled PHP, and you can also use them for some general memory caching. Memcache is a different beast so you can have both working at the same time. Memcached is completely different - it only caches objects/data you specifically require it to and can do so across multiple servers since it runs as a daemon (you need the memcache binary for your system separately) accessible via an IP and Port. If you're only running on one server I suggest you research the topic of caching a bit more to see if memcache is suitable.
Post Reply