Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/wp-rocket/inc/3rd-party/hosting/nginx.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
3
+
defined( 'ABSPATH' ) || exit;
4
+
5
+
/**
6
+
* Compatibility with an usual NGINX configuration which include:
7
+
* try_files $uri $uri/ /index.php?q=$uri&$args
8
+
*
9
+
* @since 2.3.9
10
+
*
11
+
* @param array $query_strings Array of query strings to cache.
12
+
*
13
+
* @return array Updated array of query strings.
14
+
*/
15
+
function rocket_better_nginx_compatibility( $query_strings ) {
16
+
global $is_nginx;
17
+
18
+
if ( $is_nginx ) {
19
+
$query_strings[] = 'q';
20
+
}
21
+
22
+
return $query_strings;
23
+
}
24
+
add_filter( 'rocket_cache_query_strings', 'rocket_better_nginx_compatibility' );
25
+