PluginProbe
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution / trunk
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution vtrunk
2.0.1 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.9.0 2.0.0
solid-performance / src / views / cache / nginx-bypass.php

nginx-bypass.php in Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution trunk, at src/views/cache/nginx-bypass.php

30 lines 890 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The template used to generate a cache bypass nginx.conf for when a user disables nginx caching.
4 *
5 * @package SolidWP\Performance
6 */
7
8 declare( strict_types=1 );
9
10 $nginx = <<<RULES
11 # BEGIN KadencePerformanceNginxBypassRules
12 # This should be included in the server{} block of your vhost.
13 # This file is automatically generated. Do no edit. Use the `solidwp/performance/nginx/bypass/rules` filter.
14
15 # Deny direct access to the Kadence Performance swpsp-nginx.conf.
16 location ~ swpsp-nginx\.conf$ {
17 deny all;
18 }
19
20 # Nginx caching has been disabled via settings, provide a location fallback.
21 location / {
22 try_files \$uri \$uri/ /index.php?\$args;
23 }
24 # END KadencePerformanceNginxBypassRules
25
26 RULES;
27
28 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped, StellarWP.XSS.EscapeOutput.OutputNotEscaped
29 echo apply_filters( 'solidwp/performance/nginx/bypass/rules', $nginx );
30