• Resolved Samuel Aguilera

    (@samuelaguilera)


    Hi!

    I would like to exclude certain pages from caching programmatically. But it seems that your plugin doesn’t make use of the DONOTCACHEPAGE constant used by other popular caching plugins like WP Super Cache, W3 Total Cache, or WP Rocket among others.

    As far as I know you don’t have any filter for it either, please correct me if I’m wrong.

    I would thank you very much if you can add support for DONOTCACHEPAGE or at least add a new filter for caching exclusion, as you did already for minify or async loading features.

    I would be happy to contribute with a patch if you have a Github repo for it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @samuelaguilera

    Thanks for the suggestion. We will discuss this and we may include filter in the upcoming version.

    Until then, you can use siteground_optimizer_excluded_urls option where we save the excluded urls. Note that these url’s will be displayed in SuperCacher Exclude list.

    I will update the tread when we add the filter.

    Regards,
    Stanimir

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Adding it to the roadmap ?? We will include it in the next update.

    Thread Starter Samuel Aguilera

    (@samuelaguilera)

    Thank you very much guys, looking forward for it! ??

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Do you happen to know any plugin that already uses it to manage caching? It would be useful in the testing process.

    Thread Starter Samuel Aguilera

    (@samuelaguilera)

    Sorry Hristo, not sure if you mean caching plugins using DONOTCACHEPAGE or third-party plugins excluding pages with DONOTCACHEPAGE

    For caching plugins the ones mentioned above are using DONOTCACHEPAGE, for the second, I have released the following one this morning https://www.ads-software.com/plugins/fresh-forms-for-gravity/ ??

    I would be happy to help you with the testing if you upload the patched version to trunk or provide me a link to download the new build.

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Perfect ?? Will ping you when we have the new version ready!

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    We’ve tried to add such a constant to the plugin functionality but I am afraid that it was impossible. Unlike the above mentioned plugins that generate actual files on the disk, our caching uses headers to command the NGINX reverse proxy on our servers. This means that we have to do things on an earlier stage of the page loading process where the other plugins and functions.php code is not actually loaded thus rendering the usage of such constant obsolete. I am afraid that you will have to exclude URLs only using the functionality in the plugin interface.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add support for DONOTCACHEPAGE or add a filter to exclude pages’ is closed to new replies.