Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearing object cache for a single WP site #19

Open
binaryfire opened this issue Aug 3, 2021 · 1 comment
Open

Clearing object cache for a single WP site #19

binaryfire opened this issue Aug 3, 2021 · 1 comment

Comments

@binaryfire
Copy link

binaryfire commented Aug 3, 2021

Hi guys

I'm using LSMCD on a server with multiple WP sites (all sites are using LSMCD for object caching via the LSCache plugin).

Just wondering if running wp_cache_flush (https://developer.wordpress.org/reference/functions/wp_cache_flush/) on a single site will clear the entire LSMCD KV store, thereby clearing the object cache for every site?

Or does it only clear the object cache for the one site?

Cheers

@rperper
Copy link
Collaborator

rperper commented Aug 3, 2021

If you have set in LSMCD Cached.DataByUser=true and each site is configured to use separate users and you have SASL enabled, then it will only clear that particular user's data. Otherwise, all data should be cleared.

Thanks,

Bob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants