Craft caches tend to mess up sometimes. Clear it manually with this SQL.


« Back to overview

Craft 2

You can manually clear all of the Craft 2 cache with the following SQL.
We assume your Craft2 database table prefix is craft_..


delete  FROM craft_templatecacheelements where cacheId>0;
delete  FROM craft_templatecachecriteria where id>0;
delete  FROM craft_templatecaches where id>0;

Craft 3

Craft 3 differs a little:


START TRANSACTION;
delete  FROM craft_templatecacheelements where cacheId>0;
delete  FROM craft_templatecachequeries where cacheId>0;
delete  FROM craft_templatecaches where id>0;
COMMIT;