• Resolved deejmer

    (@deejmer)


    Hi there,

    I have a page on my WordPress site that provides the visitor dynamic content, based on parameters in the URL:
    /response?ind=manufacturing&uc=cad-automation
    /response?ind=building-supplies&uc=b2b2c
    /response?ind=modular-building&uc=guided-selling

    I aim to show unique content at every unique, parameterized URL. I found ‘Accepted query strings’ under Page cache, where I listed each and every valid combination of the URL, hoping it would cache each location independently: https://i.imgur.com/iCz1PAW.png

    When I visit the page from a non-authenticated user, it seems to render only ONE version of the content – the one I viewed as an admin. It seems to cache that one version of the content.

    Is there any other option or a combination of options that allows to explicitly cache specific query parameters like I’m attempting to do?

    Thank you!

    • This topic was modified 4 years, 2 months ago by deejmer.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @deejmer

    Thank you for your inquiry and I am happy to assist you with this.
    Can you please share which caching method you are using for Page Caching, and is the option “Cache URIs with query string variables” enabled in Performance>Page Cache?
    One thing that I would advise is not to cache those pages since it’s a dynamic content and should not be cached.
    Thanks!

    Thread Starter deejmer

    (@deejmer)

    Oh, so I cannot cache those pages at all? I was hoping I could cache them independently as if they were their own location. Sounds like that is not possible?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @deejmer

    Thank you for your question.
    To cache query strings, you should enable the option in Performance>page Cache>“Cache URIs with query string variables”. This is available with the disk caching method or memory-based caching method, but not with Disk: Enhanced.
    “Accepted Query Strings” are ignored when Cache URIs with query string variables is enabled so you should not add those.
    Thanks!

    Thread Starter deejmer

    (@deejmer)

    Thank you, I understand and have made my changes to where this works well now. Thank you for clarifying how this all works!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @deejmer

    You are most welcome!

    We would really appreciate it if you could take a minute and post a review?here. This will help us to continue offering a top-notch product to users.
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Caching paramatarized content’ is closed to new replies.