Answers.Body: <p>It's a fairly common problem: <a href="https://craftcms.com/guides/resolving-stalled-background-tasks" rel="nofollow noreferrer">https://craftcms.com/guides/resolving-stalled-background-tasks</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-11T14:37:48.463Z
Answers.LastActivityDate: 2019-09-11T14:37:48.463Z
Answers.UserDisplayName: Matt Wilcox
Body: <p>I've been having a problem with my site not properly clearing out its template caches. The task list gets stuck on "Pending" when trying to execute the "Deleting stale template caches" task.</p>
  
  <p>If I manually clear the caches by going to Utilities -> Clear Caches, that works fine and it unblocks the pending task list.</p>
  
  <p>I thought maybe the problem was that my PHP <code>memory_limit</code> was too low, but if that were the case wouldn't the manual cache clear command also cause a timeout error?</p>
  
  <p>My <code>memory_limit</code> is already pretty high at <code>512M</code> so I'm hoping there's an alternative solution to this that won't require me to remove my cache tags.</p>
  
Tags: <cache>
Title: Why Does Manual Cache Clear Work But CP Task Fails?
ThreadText: # Why Does Manual Cache Clear Work But CP Task Fails?
  
  (Asked by: username_0 on 2019-09-11)
  
  I've been having a problem with my site not properly clearing out its template caches. The task list gets stuck on "Pending" when trying to execute the "Deleting stale template caches" task.
  
  If I manually clear the caches by going to Utilities -> Clear Caches, that works fine and it unblocks the pending task list.
  
  I thought maybe the problem was that my PHP `memory_limit` was too low, but if that were the case wouldn't the manual cache clear command also cause a timeout error?
  
  My `memory_limit` is already pretty high at `512M` so I'm hoping there's an alternative solution to this that won't require me to remove my cache tags.
  
  **Tags:** cache
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-09-11. Score: 1
  
  It's a fairly common problem: <https://craftcms.com/guides/resolving-stalled-background-tasks>
  
  
  ---
  
  