• Resolved Ivan Salloum

    (@ivansalloum1)


    Hello,

    I have two questions. The first question is about NGINX FastCGI cache. I self-host WordPress and use NGINX caching. Is it compatible with the super page cache plugin? I use the NGINX helper plugin for purging NGINX cache.

    And my second question is about serving images from the CDN. Does this plugin make CF serve images from their servers like a traditional CDN?

    Sorry if this information was already provided somewhere but I couldn’t get accurate answers on my questions.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    1. Yes you can use FastCGI cache with this plugin. Just make sure you have disabled the fallback cache inside this plugin settings.
    2. Yes when you setup this plugin, this plugin will serve your HTML pages and static files like CSS, JS, and Images from the Cloudflare CDN as well.

    Thread Starter Ivan Salloum

    (@ivansalloum1)

    Thanks for your response.

    Is it preferable to use NGINX FastCGI cache, or does it not significantly impact performance when employing the fallback cache? I’ve configured NGINX FastCGI cache to store cache in RAM rather than on disk.

    In situations where neither Cloudflare nor NGINX has cached content due to prolonged inactivity on the site, what is the optimal approach to ensure that cache is always readily available?

    When a visitor accesses the site, which cache will be served – Cloudflare or NGINX? In other words, under what circumstances would NGINX cache be utilized?

    Regarding the NGINX helper plugin, when updating a blog post, the NGINX cache is purged. How can the Cloudflare cache be purged simultaneously?

    Plugin Contributor iSaumya

    (@isaumya)

    In situations where neither Cloudflare nor NGINX has cached content due to prolonged inactivity on the site, what is the optimal approach to ensure that cache is always readily available?

    In this case best to not have cache for the content if it hasn’t been accessed for long time.

    When a visitor accesses the site, which cache will be served – Cloudflare or NGINX?

    If the page is already cached at cloudflare then it will be servd from CDN, if not the request will go to your server and check if it’s cached at NGINX level and if so serve that and that will get cached by Cloudflare.

    Regarding the NGINX helper plugin, when updating a blog post, the NGINX cache is purged. How can the Cloudflare cache be purged simultaneously?

    This plugin will clear Cloudflare cache automatically.

    Thread Starter Ivan Salloum

    (@ivansalloum1)

    Thanks for the information.

    This plugin will clear Cloudflare cache automatically.

    Is this something configured by the NGINX Helper plugin or by yours?

    Plugin Contributor iSaumya

    (@isaumya)

    Is this something configured by the NGINX Helper plugin or by yours?

    This plugin will take care of clearing Cloudflare cache.

    Thread Starter Ivan Salloum

    (@ivansalloum1)

    Hey again,

    if I don’t install the NGINX Helper plugin but I have NGINX FastCGI enabled, could the Super Page Cache for Cloudflare plugin purge the NGINX cache when purging Cloudflare cache?

    Plugin Contributor iSaumya

    (@isaumya)

    No. You need the NGINX Helper plugin to purge the fastCGI cache.

    Thread Starter Ivan Salloum

    (@ivansalloum1)

    If I don’t use the NGINX helper plugin, would that be a problem?

    I could only purge the entire cache from the panel but my configuration doesn’t work with the NGINX Helper plugin (I realized that after opening this thread), so I need to purge the entire cache from the panel and I don’t know if purging the entire NGINX cache would also purge Cloudflare cache.

    And if I don’t purge the NGINX cache at all, would that be a problem for Cloudflare cache?

    I set the cache duration to one hour in NGINX.

    Plugin Contributor iSaumya

    (@isaumya)

    No clearing Nginx cache won’t purge the Cloudflare cache. You need to clear the nginx cache and then the Cloudflare cache.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘NGINX FastCGI Cache – Images’ is closed to new replies.