PluginProbe
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel / trunk
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel vtrunk
1.7.1 1.7.0 1.6.0 1.5.2 trunk 0.1 0.2.0 0.2.1 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.4 0.4.1 0.4.2 0.4.3 1.0 1.1 1.2 1.3.1 1.4.0 1.4.1 1.5.0 1.5.1 All 26 releases
← All changes | includes/Fastcgi_Cache.php +5 -0 1.2trunk View file →
@@ -120,8 +120,13 @@
120 120 public function purge_cache_by_url( $url ) {
121 121 $parsed = wp_parse_url( $url );
122 122 $path = isset( $parsed['path'] ) ? $parsed['path'] : '';
123 123
124 + // Ensure path ends with trailing slash
125 + if ( substr( $path, -1 ) !== '/' ) {
126 + $path .= '/';
127 + }
128 +
124 129 // cache key format (without space): $protocal $method $host $path
125 130 // because of nginx-proxy, all request will be http, so we don't need to check protocal
126 131 // $method is always GET as we only cache GET request
127 132 $hash = md5( 'httpGET' . $parsed['host'] . $path );