chetwyn Posted July 10, 2012 Share Posted July 10, 2012 Hi guys... I'm using prestashop and need to speed. After looking at the caching options, there are quite a few. I'm confused. Please help. I've seen the options of: Memcache xCache APC Cache eAccelerator google mod_pagespeed So far from all the ones I've tried eAccelerator seem to be the quickest. Can I use APC and Memcache at once or what the best combo?> The site is new and I'm not running a cloud deployment. I want to run on a standard LAMP install. btw - are there any great pre-optimised LAMP stacks I can download and install like Bitnami's LAMP stack ? Really you love some guidance. Quote Link to comment https://forums.phpfreaks.com/topic/265461-what-cache-to-use/ Share on other sites More sharing options...
smoseley Posted July 10, 2012 Share Posted July 10, 2012 APC will cache your opcode, which is nice for caching your codebase, but it's a little buggy when dealing with large amounts of content. Memcached is nice, fast, and easy to use, but is limited to your memory for storage. Try Couchbase - it uses Memcached's protocol, will cache content in memory and/or disk, allows for multiple buckets, and is configurable through a web console. Quote Link to comment https://forums.phpfreaks.com/topic/265461-what-cache-to-use/#findComment-1360503 Share on other sites More sharing options...
smoseley Posted July 10, 2012 Share Posted July 10, 2012 PS - yes, you can use APC and Memcached together. Quote Link to comment https://forums.phpfreaks.com/topic/265461-what-cache-to-use/#findComment-1360504 Share on other sites More sharing options...
chetwyn Posted July 10, 2012 Author Share Posted July 10, 2012 wonderful. thankyou so much for your help and guidance. May I ask what would be the best way to cache MYSQL queries? Quote Link to comment https://forums.phpfreaks.com/topic/265461-what-cache-to-use/#findComment-1360509 Share on other sites More sharing options...
smoseley Posted July 10, 2012 Share Posted July 10, 2012 Pull into an array, json_encode and deflate it, then inflate and json_decode on the way out. If you're using a later version of Memcached, it will auto-compress your data, though. Quote Link to comment https://forums.phpfreaks.com/topic/265461-what-cache-to-use/#findComment-1360510 Share on other sites More sharing options...
Kaushalaminc Posted July 20, 2012 Share Posted July 20, 2012 I'm newbie in PHP and learning, continue to read this post until i understand. Quote Link to comment https://forums.phpfreaks.com/topic/265461-what-cache-to-use/#findComment-1362964 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.