<p>Thanks to Brad Bell who solved this for me. There was data in my craft_templatecache* tables. When I cleared them out the issue went away.</p>

CC BY-SA 3.0
2017-10-29T01:00:06.107Z
2017-10-29T01:00:06.107Z
glider
<p>I have a dev site that I'm working on with around 1000 entries - mainly text content. I keep seeing "DeleteStaleTemplateCaches" stalled tasks come up - many times stacking 6-8 sets of similar stuck tasks. </p>

<p>I've read the article about stalled tasks but it seems to say they are the result of using a cache tag. I have no caching of any kind - no cache tags and no caching on the server (that I'm aware of). I'm sometimes able to clear the tasks using Task Manager (after many tries) but they always return. </p>

<p>Is there anything else I should check? Thanks in advance. </p>

CC BY-SA 3.0
2017-10-27T18:03:34.567Z
Do you have any data in your 3 `craft_templatecache*` tables? When a task stalls, do you get a related error message in `craft/storage/runtime/logs` or your web server's error logs?
Brad Bell
CC BY-SA 3.0
2017-10-27T18:30:55.717Z
Here's what the database shows for those tables: http://jmp.sh/kZ3vdHp

In the logs I see things like this: 
2017/10/27 14:39:53 [info] [application] [Forced] Starting task DeleteStaleTemplateCaches that has a total of 9533 steps.
2017/10/27 14:39:53 [info] [application] [Forced] Starting step 1 of 9533 total steps.
...
2017/10/27 14:39:57 [info] [application] [Forced] Finished task 48 (DeleteStaleTemplateCaches).
glider
CC BY-SA 3.0
2017-10-27T18:47:19.153Z
Did the site use the `{% cache %}` tag at some point and was removed later?  There's definitely data in the tables.  You can nuke the data in there safely... it'll just rebuild if the cache tag is in use as needed.
Brad Bell
CC BY-SA 3.0
2017-10-28T02:08:49.647Z
It's possible that the cache tag was used in the past. I cleared those tables and now everything seems peachy. Thank you.
glider
CC BY-SA 3.0
2017-10-28T16:21:35.140Z
Awesome... would you mind adding that as an official answer in case it ends up helping someone in the future?
Brad Bell
<stalled-tasks>
DeleteStaleTemplateCaches stalled tasks
# DeleteStaleTemplateCaches stalled tasks

(Asked by: username_0 on 2017-10-27)

I have a dev site that I'm working on with around 1000 entries - mainly text content. I keep seeing "DeleteStaleTemplateCaches" stalled tasks come up - many times stacking 6-8 sets of similar stuck tasks.

I've read the article about stalled tasks but it seems to say they are the result of using a cache tag. I have no caching of any kind - no cache tags and no caching on the server (that I'm aware of). I'm sometimes able to clear the tasks using Task Manager (after many tries) but they always return.

Is there anything else I should check? Thanks in advance.

**Tags:** stalled-tasks
> **Comments:**
> **username_1**: Do you have any data in your 3 `craft_templatecache*` tables? When a task stalls, do you get a related error message in `craft/storage/runtime/logs` or your web server's error logs?  
> **username_0**: Here's what the database shows for those tables: http://jmp.sh/kZ3vdHp  In the logs I see things like this:  2017/10/27 14:39:53 [info] [application] [Forced] Starting task DeleteStaleTemplateCaches that has a total of 9533 steps. 2017/10/27 14:39:53 [info] [application] [Forced] Starting step 1 of 9533 total steps. ... 2017/10/27 14:39:57 [info] [application] [Forced] Finished task 48 (DeleteStaleTemplateCaches).  
> **username_1**: Did the site use the `{% cache %}` tag at some point and was removed later?  There's definitely data in the tables.  You can nuke the data in there safely... it'll just rebuild if the cache tag is in use as needed.  
> **username_0**: It's possible that the cache tag was used in the past. I cleared those tables and now everything seems peachy. Thank you.  
> **username_1**: Awesome... would you mind adding that as an official answer in case it ends up helping someone in the future?  

---

## 1 answers

### Answer by username_0 on 2017-10-29. Score: 2

Thanks to Brad Bell who solved this for me. There was data in my craft\_templatecache\* tables. When I cleared them out the issue went away.


---

