Title: wp cache flush doesn&#8217;t clear cache
Last modified: March 4, 2019

---

# wp cache flush doesn’t clear cache

 *  [dkrugman](https://wordpress.org/support/users/dkrugman/)
 * (@dkrugman)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/wp-cache-flush-doesnt-clear-cache/)
 * I’m using both Nginx Cache and Redis Object Cache. I’d like to clear both caches
   as part of an automated deployment. ‘wp cache flush’ clears the Redis cache, 
   but not the Nginx cache.
 * What is the best way to clear both caches from a shell script? Should I run ‘
   wp cache flush’ and then delete the contents of the /cache directory?
 * Thanks

The topic ‘wp cache flush doesn’t clear cache’ is closed to new replies.

 * ![](https://ps.w.org/nginx-cache/assets/icon-256x256.jpg?rev=1029092)
 * [Nginx Cache](https://wordpress.org/plugins/nginx-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/nginx-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/nginx-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nginx-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nginx-cache/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dkrugman](https://wordpress.org/support/users/dkrugman/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/wp-cache-flush-doesnt-clear-cache/)
 * Status: not resolved