How to easily clear all cache in Kirby 3?

I’m using memcached and I’m trying to build a simple plugin that clears the cache. In Kirby 2, I can easily do it using cache::flush() I tried site()->purge() but that doesn’t work.

1 Like

You can clear the pages cache with:


Otherwise you can just change the cache key by the one you want to flush. It seems not all cache drivers have a way to clear multiple cache keys at once.