0

Using a module, would it be possible to clear the cache of a particular user when that user updates their profile?

A use case for this is we have a directory of users (authors) but if they update their profile photo, name etc - These don't get cleared if they are cached until the cache expires and is regenerated.

I could target the key e.g. user-profile-{id} and clear the cache for this, but unsure how this works across multiple entries if for example their name appears on multiple blog posts etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.