• Resolved davedecc

    (@davedecc)


    It would be super useful for this plugin to support nginx page caching. Any chance the capability could be added in a future release? Thanks for the consideration!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter davedecc

    (@davedecc)

    I did experiment with adding the do-not-cache header by adding the code into the plugin code. It worked in adding the header, but I noticed nginx still fires. I’ll have to keep digging for my personal use case.

    Plugin Author Samuel Aguilera

    (@samuelaguilera)

    @davedecc Fresh Forms is intended to work with WordPress caching plugins.

    To be able to deal with server side caching directly, your server would need to provide a way to configure the cache exclusion from WordPress side of things somehow. Examples of this are LiteSpeed Cache, WP Engine or Kinsta, where the caching is done at the server side of things, but there’s a WordPress plugin which integrates with the server caching engine, so it’s possible for Fresh Forms to deal with it.

    If your server caching engine provides a way to do this, and you can provide me access to a staging site, I would be happy to look into it.

    Thread Starter davedecc

    (@davedecc)

    Appreciate your thoughts, thanks Samuel.

    The current most supported plugin for this is Nginx Helper plugin, which we do run. We are also running a cpanel/whm nginx page cache implementation on easyapache4 with php-fpm.

    My understanding is PHP headers should suffice to prevent nginx cache, but in my initial testing I have not been successful with this yet. I can work on a staging site setup for you, it will take a bit of time.

    Thanks!

    Plugin Author Samuel Aguilera

    (@samuelaguilera)

    You’re welcome @davedecc

    I see that Nginx Helper doesn’t have any option to exclude pages from cache, which suggests it’s not possible to do this from WordPress. Which makes sense to me because in my experience with nginx it’s a server that tends to avoid dependencies from external sources to improve its performance.

    So it wouldn’t be possible for me to add support for cache exclusion into Fresh Forms. I could look into adding support for the Purge option provided by Nginx Helper (e.g. to purge the cache after saving changes to a form), but for this I would need the staging site as I don’t have access to any nginx server currently.

    Thread Starter davedecc

    (@davedecc)

    Understood, thanks for taking a look. I am settling on updating config files for now, I’ll revisit if I get any leads on a more straightforward way to do this. I generally clear the page cache manually anyway. Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.