• Resolved macsolve

    (@macsolve)


    Is there a way through a filter or other to add the value of specific query strings to the cache key for the page cache? I need to have pages cached separately based on this (currently using disk advanced).

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

    (@vmarko)

    Hello @macsolve

    Thank you for reaching out and I am happy to help!
    Just to confirm, you want for example to separatly cache the same page based on this? Meaning have the same page cached depending on the cache key?

    Thanks!

    Thread Starter macsolve

    (@macsolve)

    Yes that is correct. Certain query parameter values affect the contents of the page, for example currency

    Thread Starter macsolve

    (@macsolve)

    (duplicate comment)

    • This reply was modified 1 year, 1 month ago by macsolve.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @macsolve

    Thank you for your feedback.
    You can add the specific query string in Performance>Page Cache>Advanced>Accepted query strigs with Disk Enhanced
    Do you have sppecific cookies set depending on the geolocation?

    THanks!

    Thread Starter macsolve

    (@macsolve)

    ”Accepted query strings” doesn’t help that case. They just enable the page cache even if one of those query parameters are present, but they don’t separate the cache for different parameter values, which is exactly what I want. The query parameters are just accepted but ignored.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @macsolve

    Thank you for your feedback.
    The only way to use separate cache would be using Cookie groups and setting different cookies.
    You can enable this in Performance>Cache Groups. Once enabled you can Create a group of Cookies by specifying names in the Cookies field. Assign a set of Cookies to ensure that a unique cache is created for each Cookie group. Please note that Regex is also supported now.

    Thanks!

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

The topic ‘Use query string value for cache key’ is closed to new replies.