Support » Plugin: WP Super Cache » how to replace wp_cache_request_uri?

  • 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 3 replies - 1 through 3 (of 3 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.

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

    Plugin Author Donncha Ó Caoimh

    (@donncha)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.