Created
June 26, 2024 15:59
-
-
Save joychetry/1b8aa85459441c2a67e4715d8c9da7dd to your computer and use it in GitHub Desktop.
Object Cache Pro in Multiple Website in Same Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('WP_REDIS_CONFIG', [ | |
'token' => 'your_token_key', | |
'host' => '127.0.0.1', | |
'port' => 6379, | |
'database' => 0, // change for each site | |
'maxttl' => 3600 * 24 * 7, // 7 days | |
'timeout' => 1.0, | |
'read_timeout' => 1.0, | |
'prefetch' => true, | |
'split_alloptions' => true, | |
'strict' => true, | |
'debug' => false, | |
'prefix' => 'maybe_sitename', | |
]); | |
define('WP_REDIS_DISABLED', false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment