• The WP Super Cache is very great cache plugin.

    I would like it to ignore some parameters for caching, ex. ?gclid=xxxxx.
    The best solution for me is that the “WP Super Cache” would add configuration “Ignore Parameters” in preference, but it is somehow difficult.

    The next solution is to hack $wp_cache_request_uri using a plugin for the super cache.
    Would you want to tell me how to replace wp_cache_request_uri by a plugin, or something better solutions?

    Actually, I add a below line directly after every updating the super cache in wp-cache-phase1.php:
    $wp_cache_request_uri = preg_replace(‘/\?gclid=.+$/’,”,$wp_cache_request_uri);

Viewing 5 replies - 1 through 5 (of 5 total)
  • + 1 to this request.

    I would also like to have the possibility to ignore some parameters (gclid, fbclid,..).

    Links coming from Facebook or Google ads are not cached because this parameters never have the same values.

    Thread Starter tsuchim

    (@tsuchim)

    Exactly, and these pages especially need speed.
    We need something to treat the pages with these parameters.

    Plugin Author Donncha O Caoimh (a11n)

    (@donncha)

    There’s a setting “Don’t cache pages with GET parameters” which will do what you want, in a general way.

    Thread Starter tsuchim

    (@tsuchim)

    Thank you for your reply.
    However, we want to remove only these parameters and use the others.

    Thread Starter tsuchim

    (@tsuchim)

    I am sorry, but I am confused with what the “Don’t cache pages with GET parameters” option means, whether caching is disabled for pages with GET parameters or enabled for pages that ignore GET parameters.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to replace wp_cache_request_uri?’ is closed to new replies.