Roots Discourse

Disable FastCGI for specific templates/post-types

Are there any way to disable the FastCGI cache for a specific template.

As of now i have added a no-cache cookie in the template-controller, but this would still result in the user’s first request beeing cached.

There is a risk that the admin will be changing the page uri, so i don’t think a uri filter will work? Or is it possible to target some kind of underlying template/post-type specific uri?

Appreciate any suggestions.

Are there any way to disable the FastCGI cache for a specific template.

Seems none because:

  • FastCGI cache is at Nginx level
  • Nginx knows URL and cookies but not WordPress templates.

As of now i have added a no-cache cookie in the template-controller, but this would still result in the user’s first request beeing cached.

Does the no cache cookie carry over to subsequential page visits (which should be cached)?

The cookie is beeing limited to the specific permalink when set.

It might be possible to set cookies for all pages with a certain template on the very first visit to any page.
But this would still serve a cached page if the user is using a direct link to the template-page for the first visit.

This topic was automatically closed after 42 days. New replies are no longer allowed.