<p>There are three database tables that Craft uses to manage template caches:</p>

<pre><code>craft_templatecachecriteria
craft_templatecacheelements
craft_templatecaches
</code></pre>

<p>You can visit each of those tables remove any records in them directly.</p>

CC BY-SA 3.0
2015-02-09T02:24:07.213Z
2015-02-09T03:11:05.070Z
2015-02-09T03:11:05.070Z
Ben Parizek
<p>This does not target the database cache specifically but I wrote this simple plugin to clear all caches from outside of the control panel.</p>

<p><a href="https://github.com/themccallister/craft.cache-clear" rel="nofollow">https://github.com/themccallister/craft.cache-clear</a></p>

<p>Would that work for you?</p>

CC BY-SA 3.0
2015-01-08T18:21:59.620Z
2015-01-08T18:21:59.620Z
Jason McCallister
<p>Is it possible to manually clean the database caches for templates? Doing it from the CP becomes stuck. </p>

CC BY-SA 3.0
2015-06-23T12:59:21.400Z
I'd be more interested in why it's getting stuck and how we can fix it from sticking!
gromgull
CC BY-SA 3.0
2015-06-23T13:00:55.050Z
in my case the cache had ballooned to immense proportions and the database process timed out when trying to clean it.
Florian
<database><cache>
Manually clean database cache
# Manually clean database cache

(Asked by: username_0 on 2015-01-08)

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

**Tags:** database, cache

> **Comments:**
> **username_1**: I'd be more interested in why it's getting stuck and how we can fix it from sticking!  
> **username_0**: in my case the cache had ballooned to immense proportions and the database process timed out when trying to clean it.  

---

## 2 answers

### Answer by username_2 on 2015-02-09. Score: 3 | Accepted answer

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.


---

### Answer by username_3 on 2015-01-08. Score: 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?


---

