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 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘how to replace wp_cache_request_uri?’ is closed to new replies.