CyberHosting

Configuring Redis Object caching for WordPress with LScache on Cyberpanel

Hi Support,

Is their any documentation link to configure Redis Object caching for WordPress with LScache deployed using Cyberpanel.

I was looking at this article " https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:redis " but would like to know any documentation from cyberpanel team.

Regards,

Comments

  • I set it up very easily.

    1) Ensure Redis is up and running
    2) Enable Redis via the WordPress plugin, only setting I had to change was password because I use requirepass

    Additionally, I'd recommend these settings in redis.conf:

    maxmemory 100mb
    maxmemory-policy allkeys-lru
    maxmemory-samples 10
    appendonly yes

    and disable snapshotting, comment out the lines beginning with "save" to do this, for example,

    #save 900 1
    #save 300 10
    #save 60 10000

    I'd also add vm.overcommit_memory = 1 to /etc/sysctl.conf.

    Also disable transparent huge pages,
    echo never > /sys/kernel/mm/transparent_hugepage/enabled
  • Hi Jayw,

    Thanks for the detailed reply I will try this out, also can these settings be used for Woocommerce sites.

    Regards.
  • Hi,

    Yes, these are good settings for any kind of site.
  • jayw said:

    Hi,

    Yes, these are good settings for any kind of site.

    Thanks Jayw
  • jayw said:

    I set it up very easily.

    1) Ensure Redis is up and running
    2) Enable Redis via the WordPress plugin, only setting I had to change was password because I use requirepass

    Additionally, I'd recommend these settings in redis.conf:

    maxmemory 100mb
    maxmemory-policy allkeys-lru
    maxmemory-samples 10
    appendonly yes

    and disable snapshotting, comment out the lines beginning with "save" to do this, for example,

    #save 900 1
    #save 300 10
    #save 60 10000

    I'd also add vm.overcommit_memory = 1 to /etc/sysctl.conf.

    Also disable transparent huge pages,
    echo never > /sys/kernel/mm/transparent_hugepage/enabled

    thanks. Can Redis be enabled together with LSCache? Is there any conflict?

  • thanks. Can Redis be enabled together with LSCache? Is there any conflict?

    I use both together with no issue.
    If you are using the WordPress LSCache plugin, Redis is fully supported and can be enabled in the advanced menu options.

  • jayw said:


    thanks. Can Redis be enabled together with LSCache? Is there any conflict?

    I use both together with no issue.
    If you are using the WordPress LSCache plugin, Redis is fully supported and can be enabled in the advanced menu options.

    Sweet! Any benchmark for this setup? Do you use it on a production website? how many visitors can it handle?

    thanks

  • Sweet! Any benchmark for this setup? Do you use it on a production website? how many visitors can it handle?

    thanks

    I've not done any benchmarks but you can find some here: https://community.centminmod.com/threads/how-to-install-redis-server-on-centmin-mod-lemp-stack.4546/

    I do use it on production, the server is never strained. Hard to estimate how many visitors it could handle but I'd guess thousands. (8gb Vultr server)
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!