The current way to disable cache is only possible by setting WP_DEBUG to true.
For a project I currently need to disable cache on the production site.
So I've added a filter to disable cache.
And while working on it it seemed prettier to only recompile the necessary files instead of removing all cached files on every request.
The current way to disable cache is only possible by setting WP_DEBUG to true. For a project I currently need to disable cache on the production site. So I've added a filter to disable cache. And while working on it it seemed prettier to only recompile the necessary files instead of removing all cached files on every request.