3

Is it possible to manually clean the database caches for templates? Doing it from the CP becomes stuck.

  • 1
    I'd be more interested in why it's getting stuck and how we can fix it from sticking! – gromgull Jun 23 '15 at 12:59
  • in my case the cache had ballooned to immense proportions and the database process timed out when trying to clean it. – Florian Jun 23 '15 at 13:00
3

There are three database tables that Craft uses to manage template caches:

craft_templatecachecriteria
craft_templatecacheelements
craft_templatecaches

You can visit each of those tables remove any records in them directly.

| improve this answer | |
4

This does not target the database cache specifically but I wrote this simple plugin to clear all caches from outside of the control panel.

https://github.com/themccallister/craft.cache-clear

Would that work for you?

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.