EasyEngine/site-type-wp

Define WP_CACHE_KEY_SALT on redis site creation

Closed this issue · 2 comments

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.

@kirtangajjar Please comment on PR #51 for the same. WP_CACHE_KEY_SALT is already there. TTL can be added.

Closing this as it has been taken care of in PR #51