Query Strings in URLs

Cache Url with QueryString

by admin

WP Fastest Cache does not create cache by default if a url contains a query string.

Enable Cache for URLs with Query Strings

If you want to enable cache system for the urls which contain querystring, you need to add the following line after <?php which exists at the top of wp-config.php file.

define('WPFC_CACHE_QUERYSTRING', true);

Google Analytics Parameters

Google Analytics allows adding campaign parameters to the destination URLs to collect information about the overall efficacy of the campaigns.

If a url contains any google analytics parameters such as utm_source, utm_medium, utm_campaign, utm_term, utm_content, the url is served via main page cache. You don’t need to do any extra action.

Example

https://www.example.com/mypost/?utm_source=summer-mailer&utm_medium=email&utm_campaign=summer-sale

This url is served via the cache of https://www.example.com/mypost/

How To Disable

If you want to disable this feature, you can exclude via “exclude” tab as below.

Related articles

How to Move the Menu Item Under the Setting Menu
How to Move the Menu Item Under the Setting Menu

The menu item of WP Fastest Cache is added to the top level menu by default so you can reach…

Placeholder Image
How to Serve Cache Only via PHP

On servers using apache, the cache is served via htaccess thanks to the rewrite rule. It is the best method…

Placeholder Image
How to Remove the Footer Comment

By default, WP Fastest Cache adds an HTML comment in the page footer that indicates when and for how long…

Ready to get started?

Purchase your first license and see why 1,500,000+ websites globally around the world trust us.