• Resolved ameeyswain

    (@ameeyswain)


    Hi Team,

    The objective is to deliver cache of main URL with ignoring query parameters.

    We have enabled get parameters option to cache but every time it generates a new cache file if passing different query parameters. We want that the main url should get cached with not effect of query parameters. We have tried to use the action wp_cache_key but it’s not properly working all over the site.

    Any solution on this would be highly appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @ameeyswain

    I’ve asked our development for some help on how to accomplish this, when someone has a chance we’ll pass along an update.

    Plugin Author Mark (a11n)

    (@thingalon)

    Hi @ameeyswain,

    Super Cache doesn’t have an option to ignore all GET parameters when caching content. However, there is an option to ignore specific GET parameters in the Advanced tab.

    Head to “Advanced” > “Tracking parameters” in the Super Cache settings, and you will see a list of tracking GET parameters that Super Cache will ignore. If you have specific GET parameters you want to ignore, you can add them there.

    That is generally the recommended method to ignore GET parameters.

    If you are sure you want to ignore all GET parameters, you can force that by adding the following code snippet to your wp-config.php file:

    $wpsc_tracking_parameters = array_keys( $_GET );
    $wpsc_ignore_tracking_parameters = 1;

    Please note that this overrides the default behaviour of the “Tracking Parameters” feature to remove all parameters. This is not something we explicitly support, so we can’t guarantee this functionality won’t change in some future version of Super Cache.

    Thread Starter ameeyswain

    (@ameeyswain)

    Hi @thingalon,

    Thanks for your response. It seems working for me.

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hi @ameeyswain,

    Thanks for the follow-up! Glad you seems to be all sorted out 🙂

    I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to deliver cache of main URL with query parameters’ is closed to new replies.