• Resolved eddr

    (@eddr)


    Hi

    – My question is how to add rules/logic?
    – Specifically, I needed page cache to be saved according to a *combination* of cookie groups.
    For example: unique cache for these:
    cookie1=3,cookie2=dog
    cookie1=3,cookie2=cat

    But it isn’t the way W3TC works, it seems

    Thanks

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

    (@vmarko)

    Hello @eddr

    Thank you for reaching out
    You can use Cookie groups for this in Performance>Cookie Groups. With this, 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. Drag and drop groups into order (if needed) to determine their priority (top -> down)
    You should use the correct groups and each group should specify {key}={value}
    So you should replace {key} with the actual cookie name.
    And don’t forget to enable all the checkboxes (enable and cache)
    There should be a group for each key-value combination.

    I hope this helps!

    Thanks!

    Thread Starter eddr

    (@eddr)

    Hi and thanks for the detailed response

    However, that’s not what I meant.
    I already use the cookie group cache and it works, however, not as I descrtibed.

    If you have two cookie groups: ‘a’ and ‘b’. you won’t have a unique page cached for each combination of these two, only for the first cookie group fetched
    Do you see what I mean?

    Thread Starter eddr

    (@eddr)

    any thoughts?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘API/Feature : programmatically define page cache rules’ is closed to new replies.