• Resolved mcworks

    (@mcworks)


    Hello, I’m considering using both Redis & Memcached in my VPS though the hosting company advises to only use one their fear is that using both can lead to redundancy and resource competition.

    My scenario while testing I have observed that Redis performs well for Page Cache & Database Cache but not for Object Cache which has a higher latency and better being off. This is what I’m hoping Memcached (or any other can suggest) will aid in a performance boost. Please advise.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mcworks

    Thank you for reaching out and I am happy to help!
    This entirely depends on the resources you have on your VPS and how big your website is. Both Redis and Memcached can be used at the same time, and as they use somewhat different aproach in caching, they can be benefitial to use for different features.
    I would suggest first to try using Redis for OC and disable the DB Caching, and see if this helps.

    TO sum up, both can be used, however, it depends on the server resrouces given to those engines

    Thanks!

    Thread Starter mcworks

    (@mcworks)

    Well thank you for reaching back.. To give a little bit more context I’m running a LMS Community website and my VPS is running on Apache Nginx server with Redis, has 5 cores, 10GB ram, 150GB SSD.

    My query lies when using the automatic setup config option in W3TC, it takes you through a series of steps beginning from > Page Cache > Database Cache > Object Cache > Browser Cache > Image Optimization. Correct me if I’m wrong here but these seems like steps to examine how your server is well suited to perform and my assumption is that a best server performance is one that passes all and allows configs of each to be done. Its in this regard that I’m thinking of introducing Memcached to the server as the object cache is the only step my server seems not to be reporting a positive benefit. Please advise if my theory of how a great server and how W3TC works is valid or not. Thanks and apologies for long text.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mcworks

    If you install Memcached, You can check in the setup guide how it performs against other caching engines.
    With this setup, I do not see any reason not to use memcached as well if you want for other modules

    Thanks!

    Thread Starter mcworks

    (@mcworks)

    Thanks for the feedback though my host insists as below… and I’m at a loss
    we do not recommend enabling both as it increases the resource usage causing further slowness. It’s often more efficient to choose one based on specific needs like persistence (Redis) or simplicity and speed (Memcached).

    Separately, given my setup scenario LMS leaning community as had explained, I believe caching logged users would bring some great improvement. I have read your article on the same (https://www.boldgrid.com/support/question/page-cache-to-logged-in-users/) any new developments in this regard would be welcomed.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mcworks

    THank you for your feedback. In this case, You can use separate Redis instances for different modules.

    As for the other question, what I wrote there still stands. Currently, this would be very problematic due to the GDPR for example.

    I hope this helps!

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Using Both Redis & Memcached’ is closed to new replies.