Title: Ignore parameters
Last modified: January 6, 2017

---

# Ignore parameters

 *  [hadebe](https://wordpress.org/support/users/hadebe/)
 * (@hadebe)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/ignore-parameters/)
 * Is it possible to ignore specific url parameters?
 * For example:
    example.com/url?gclid=xxxxxxxxx example.com/url?gclid=yyyyyyyyy
   example.com/url?gclid=zzzzzzzzz
 * this urls are now seen as unique pages which are all cached individually; but
   the content is exactly the same. Ideally I have a cached version which is served
   to all requests and ignore this parameter.
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [cacko](https://wordpress.org/support/users/cacko/)
 * (@cacko)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/ignore-parameters/#post-8702027)
 * In file “wp-cache-phase1.php”
    after – $wp_cache_request_uri = $_SERVER[‘REQUEST_URI’];(
   77 line)
 * You can add 4 lines to ignore gclid parameters
 * //start
    $nrGetParams = strpos($wp_cache_request_uri, ‘?gclid’); if ($nrGetParams){
   $wp_cache_request_uri = substr($wp_cache_request_uri, 0, $nrGetParams); } //end
    -  This reply was modified 9 years, 3 months ago by [cacko](https://wordpress.org/support/users/cacko/).
    -  This reply was modified 9 years, 3 months ago by [cacko](https://wordpress.org/support/users/cacko/).
    -  This reply was modified 9 years, 3 months ago by [cacko](https://wordpress.org/support/users/cacko/).
    -  This reply was modified 9 years, 3 months ago by [cacko](https://wordpress.org/support/users/cacko/).
    -  This reply was modified 9 years, 3 months ago by [cacko](https://wordpress.org/support/users/cacko/).

Viewing 1 replies (of 1 total)

The topic ‘Ignore parameters’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

## Tags

 * [parameter](https://wordpress.org/support/topic-tag/parameter/)

 * 1 reply
 * 2 participants
 * Last reply from: [cacko](https://wordpress.org/support/users/cacko/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/ignore-parameters/#post-8702027)
 * Status: not resolved