![]() ![]() However, the Cache query strings option will not enable caching for this parameter. To cache search results, please install the helper plugin found here. It exists to separate validated string inputs, represented by types such as String, &str, and Cow types, from unvalidated inputs, represented by &RawStr.The standard parameter for WordPress search results is: s This is a special type, provided by Rocket, that represents an unsanitized, unvalidated, and undecoded raw string from an HTTP message. WP Rocket automatically caches those parameters. When that option is active, WooCommerce appends a query string to each URL, like this: In WooCommerce there is the option to enable Geolocation (with page caching support): will create a dedicated cache file for their parameter/value pairs: Parameters with dedicated cachingįor all of the parameters listed above, WP Rocket will serve the dedicated cache file, depending on the parameter values in the URL. Parameters in the URL must all be present in the ignored list for the page to be cached. In cases where you have a mixture of ignored parameters (from the list above) and others not on the list, the page will not be cached. Example:Ä®/page/?utm_source=this&utm_campaign=that&utm_medium=theother URLs with multiple ignored parametersĪ query string can also contain multiple parameter/value pairs, chained by & characters. Please note: A dedicated cache file will be created when the parameters found in the dedicated caching section below or those placed on the Advanced Rules tab referenced above are included in the URL. You can also directly query Data & Insights data using OData as a REST API. ![]() If you would like to customize the list of ignored parameters, please see this guide. will BOTH receive the cache file from: Hereâs what that means:Ä®/about-us/?gclid=somethingelse Ignored query string parameters with standard cachingįor all of the parameters listed below, WP Rocket will ignore the query string and serve the standard cache file, regardless of any parameter values in the URL. Ignored query string parameters with standard caching.Despite this setting behavior, the caching will work for URLs such as For example, if you have a country parameter, the Cache Query String(s) box will only show country. If there are multiple parameters in a URL, as long as one of your specified parameters is present, the page will be cached.įor example, if country is a cached parameter, the following URL will be cached:Īdditionally, all special characters included in parameters will be stripped from the box but will still work. When you do this, a dedicated cache file will be generated for each value the parameter country receives in a URL. Welcome to the world, WP Rocket 2. If you want these types of pages to be cached, go to the Advanced Rules settings tab, and add each parameter in the Cache Query String(s) text field (one per line): WP Rocket 2.9 Iridonia Remove Query Strings and more Table of Contents Last update on JDecember is the season of giving, and our gift to you is a shiny new version of WP Rocket. In this case, country is the parameter and italy is the value. ![]() WP Rocket does not cache pages with query strings by default, although there are some very specific exceptions (see below).Ī query string is where you have a URL that contains a question mark followed by a parameter and a value, like this: ![]()
0 Comments
Leave a Reply. |