Define WP_CACHE_KEY_SALT on redis site creation
Closed this issue · 2 comments
kirtangajjar commented
We need to add following line in -wp-config.php
to ensure cache key of one site do not conflict with cache key of other sites
define('WP_CACHE_KEY_SALT', 'site_name');
and we also set cache ttl on cache as we do in ee3 -
define('WP_REDIS_MAXTTL', 14400);
Edit: WP_CACHE_KEY_SALT
is already set by wp-cli. we just need to add max TTL.
mrrobot47 commented
@kirtangajjar Please comment on PR #51 for the same. WP_CACHE_KEY_SALT
is already there. TTL can be added.