• Resolved Daniel

    (@warden23)


    Hello,

    I’m loving the pro version! Great work and thanks for being active on these forums. I’ve posted this here as I know others will come across this question.

    I’m trying to Cache some GET’s and POST’s how do I go about entering them into the Settings > Caching > General and under Enable Dynamic Caching what do I enter?

    So I have these I would like to test caching.

    GET’s
    /cart/?removed_item=1
    ?attribute_pa_size=7

    POST’s
    ?wc-ajax=get_refreshed_fragments
    ?wc-ajax=yith_wccl_variation_gallery

    Do I just copy and paste into the input; for example:
    /cart/?removed_item=1

    Or do I only add remove_item or do I put ?removed_item=1

    With those wc-ajax ones I listed above would I put them under Cacheable AJAX Actions or Enable Dynamic Caching?
    If so do I just copy and paste as I have typed them above?

    Thank you for your help!
    Daniel

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Fred

    (@fredawd)

    Specific custom configuration is not part of our LITE support, but off course we can help a bit. The use of Dynamic Cache is more intended for developers or professionals.

    For example, you can add this >> ?attribute_pa_size=7 << and it is picking up.

    At the moment you can specify keys only, but it should cache only requests which contains one of the specified keys.

    We will consider to improve this option to be able to specify key-value pairs (with regex) in PRO version, until this you can use swift_performance_is_cacheable filter to override the default behavior.

    Hope it helps.

    Thread Starter Daniel

    (@warden23)

    Thank you Fred that’s an answer to my question and perhaps you can expand on this like you have here on your FAQ to help your clients who have the Pro version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Understanding Caching of GET and POST’ is closed to new replies.