Title: Autoptimize + FastCGI cache clear
Last modified: January 1, 2020

---

# Autoptimize + FastCGI cache clear

 *  [tomeryatir](https://wordpress.org/support/users/tomeryatir/)
 * (@tomeryatir)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-fastcgi-cache-clear/)
 * Hey,
 * I’ve been using Wp-rocket + autoptimize + FastCGI cache in Nginx.
    I get JS errors
   when i clear A/O cache, and FastCGI cache is left as is. Then the cached version
   is lookin for the A/O cached files but doesn’t find them.
 * Is there a way to clear cache from fastCGI when A/O is being cleared?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-fastcgi-cache-clear/#post-12284280)
 * Not in AO no. Do you use a plugin to hook FastCGI cache clearing into WordPress?
   If that plugin exposes a method/ action to clear the cache, then AO could do 
   so (or that plugin could hook into AO’s ..
 *  Thread Starter [tomeryatir](https://wordpress.org/support/users/tomeryatir/)
 * (@tomeryatir)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-fastcgi-cache-clear/#post-12284286)
 * I was trying for some hours to work with Nginx Helper, Which claims to do so.
   But unFortunately it won’t work, so i dont see any plugin that supports that (
   + wp-rocket compt).
 * When i use AO + WP cache + fastcgi cache, the 3 do work properly. The problem
   occurs when i change Wp cache with WP-rocket.
 * Do you have any idea why does it happen OR any workaround? I find out that wp-
   rocket + AO are the best comibnation for speed and google rank.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-fastcgi-cache-clear/#post-12284288)
 * no idea why it doesn’t work I’m afraid tomeryatir, no .. :-/ AO does have code
   to integrate with Nginx Helper indeed, but the fact you also have WP Rocket undoubtedly
   makes this a tad more … complex.
 *  Thread Starter [tomeryatir](https://wordpress.org/support/users/tomeryatir/)
 * (@tomeryatir)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-fastcgi-cache-clear/#post-12284294)
 * I’ve sent them support ticket, hopefully it would shed some light on this issue.
   
   I’ll update if there’s some progress.
 * If you would like to look it up for updates and upgrades, i’d be happy to share
   credentials for dev purposes.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-fastcgi-cache-clear/#post-12284302)
 * OK, feel free to keep me posted indeed 🙂
 *  Thread Starter [tomeryatir](https://wordpress.org/support/users/tomeryatir/)
 * (@tomeryatir)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-fastcgi-cache-clear/#post-12287823)
 * Hey,
    It seems that the issue im facing is the same as here:
 * [https://wordpress.org/support/topic/autoptimize-js-autoptimize_xxxxxxxx-js-404-error/](https://wordpress.org/support/topic/autoptimize-js-autoptimize_xxxxxxxx-js-404-error/)
 * The only change, i’m using Nginx, how can i solve this? thanks!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-fastcgi-cache-clear/#post-12288379)
 * I don’t know nginx well enough to give correct directives on how to send 410 
   instead of 404, sorry. maybe Google can help? 😉

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Autoptimize + FastCGI cache clear’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [fastcgi](https://wordpress.org/support/topic-tag/fastcgi/)
 * [nginx](https://wordpress.org/support/topic-tag/nginx/)

 * 7 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/autoptimize-fastcgi-cache-clear/#post-12288379)
 * Status: not resolved