Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Would this redis settings in wp-config.php (unmanaged Wordpress app) give any conflicts?

    WordPress (Developer)
    2
    3
    19
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Vladimir last edited by

      define('WP_REDIS_CONFIG', [
      'token' => '...',
      'host' => '127.0.0.1',
      'port' => 6379,
      'database' => 0, // change for each site
      'timeout' => 0.5,
      'read_timeout' => 0.5,
      'retry_interval' => 10,
      'retries' => 3,
      'backoff' => 'smart',
      'compression' => 'zstd', // zstd compresses smaller, lz4 compresses faster
      'serializer' => 'igbinary',
      'async_flush' => true,
      'split_alloptions' => true,
      'prefetch' => true,
      'debug' => false,
      'save_commands' => false,
      ]);

      define('WP_REDIS_DISABLED', getenv('WP_REDIS_DISABLED') ?: false);

      1 Reply Last reply Reply Quote 0
      • V
        Vladimir last edited by Vladimir

        Except I change the host and add a password. Also, this configuration requires Redis Server 4.0 (or newer) as well as PhpRedis to be compiled with igbinary and zstd support.

        girish 1 Reply Last reply Reply Quote 0
        • Moved from Support by  girish girish 
        • girish
          girish Staff @Vladimir last edited by girish

          @Vladimir Can you explain a bit more what the issue you are trying to solve is and what is that config you have posted? I see that it's some redis config, but what are you looking to achieve?

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Powered by NodeBB