Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter archon810

    (@archon810)

    In fact, now that I think about it, it’s not just ?amp, it’s also the same page with any GET parameter appended that doesn’t get its cache cleared. For example, when updating https://example.com/post, https://example.com/post?amp doesn’t get cleared, but also https://example.com/post?1 or https://example.com/post?a=b, etc.

    What should ideally happen is anything matching https://example.com/post* would get its cache cleared, which would include any variations of the url – otherwise they’ll all get stale cache.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @archon810,

    I am sorry for the issue you are having and I am happy to assist you with this.
    The plugin doesn’t know all of the possible combinations of GET parameters used for page cache, so we cannot clear all URLs that easy.
    We are checking on this and we’ll get back to you.

    Thread Starter archon810

    (@archon810)

    Looking forward to your findings. Right now it’s a major flaw in the plugin for any AMP-enabled site, so I hope you will consider a solution.

    Perhaps this can be done with a setting somewhere that’s off by default to maintain compatibility with those sites lacking permalink rewrites and using GET params, as well as urls like example.com?p=123, but I believe all this logic can be incorporated into the plugin, and it could use the permalink url as the base, then clear cache for anything that adds extra parameters.

    Or perhaps there’s a good way to hook into some of the plugin’s hooks for this and do it ourselves? Appreciate any pointers.

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

The topic ‘AMP page cache does not get cleared’ is closed to new replies.