Cloudflare - Version 4.10.1

Version Description

  • 2022-06-06 =

  • Fix logic for ignoring cache purge operations.

Download this release

Release Info

Developer manatarms
Plugin Icon 128x128 Cloudflare
Version 4.10.1
Comparing to
See all releases

Code changes from version 4.10.0 to 4.10.1

cloudflare.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Cloudflare
4
  Plugin URI: https://blog.cloudflare.com/new-wordpress-plugin/
5
  Description: Cloudflare speeds up and protects your WordPress site.
6
- Version: 4.10.0
7
  Requires PHP: 7.2
8
  Author: Cloudflare, Inc.
9
  License: BSD-3-Clause
3
  Plugin Name: Cloudflare
4
  Plugin URI: https://blog.cloudflare.com/new-wordpress-plugin/
5
  Description: Cloudflare speeds up and protects your WordPress site.
6
+ Version: 4.10.1
7
  Requires PHP: 7.2
8
  Author: Cloudflare, Inc.
9
  License: BSD-3-Clause
composer.json CHANGED
@@ -32,7 +32,7 @@
32
  "_comment": [
33
  "php-compatibility-install comes from https://github.com/wimg/PHPCompatibility/issues/102#issuecomment-255778195"
34
  ],
35
- "version": "4.10.0",
36
  "config": {
37
  "platform": {
38
  "php": "7.2"
32
  "_comment": [
33
  "php-compatibility-install comes from https://github.com/wimg/PHPCompatibility/issues/102#issuecomment-255778195"
34
  ],
35
+ "version": "4.10.1",
36
  "config": {
37
  "platform": {
38
  "php": "7.2"
composer.lock CHANGED
@@ -4,7 +4,7 @@
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
- "content-hash": "b021219a5ffab6b04f55089d3a746e7d",
8
  "packages": [
9
  {
10
  "name": "cloudflare/cf-ip-rewrite",
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
+ "content-hash": "add31bec11920c881da38b966a45b27b",
8
  "packages": [
9
  {
10
  "name": "cloudflare/cf-ip-rewrite",
config.json CHANGED
@@ -25,5 +25,5 @@
25
  },
26
  "locale": "en",
27
  "integrationName": "wordpress",
28
- "version": "4.10.0"
29
  }
25
  },
26
  "locale": "en",
27
  "integrationName": "wordpress",
28
+ "version": "4.10.1"
29
  }
output.log CHANGED
@@ -16,35 +16,34 @@ php-7.4-build2: Pulling from cloudflare/cloudflare-wordpress/php-actions_compose
16
  5571c1cd7f43: Pulling fs layer
17
  65564f077fec: Pulling fs layer
18
  4d1e94121e00: Pulling fs layer
 
 
19
  79c03e12047a: Waiting
20
  51393fef6543: Waiting
21
  5571c1cd7f43: Waiting
22
  65564f077fec: Waiting
23
  4d1e94121e00: Waiting
24
- 4612e05a72cf: Waiting
25
- 9b2beae78beb: Waiting
26
  30e209609427: Verifying Checksum
27
  30e209609427: Download complete
28
  801bfaa63ef2: Verifying Checksum
29
- 801bfaa63ef2: Download complete
30
  320f26ee9b1c: Verifying Checksum
31
  320f26ee9b1c: Download complete
32
  801bfaa63ef2: Pull complete
 
 
33
  30e209609427: Pull complete
 
 
34
  4612e05a72cf: Verifying Checksum
35
  4612e05a72cf: Download complete
36
  320f26ee9b1c: Pull complete
37
- 79c03e12047a: Verifying Checksum
38
- 79c03e12047a: Download complete
39
  4612e05a72cf: Pull complete
40
- 9b2beae78beb: Verifying Checksum
41
- 9b2beae78beb: Download complete
42
  9b2beae78beb: Pull complete
43
- 79c03e12047a: Pull complete
44
  5571c1cd7f43: Verifying Checksum
45
  5571c1cd7f43: Download complete
46
- 65564f077fec: Verifying Checksum
47
- 65564f077fec: Download complete
48
  51393fef6543: Verifying Checksum
49
  51393fef6543: Download complete
50
  4d1e94121e00: Verifying Checksum
16
  5571c1cd7f43: Pulling fs layer
17
  65564f077fec: Pulling fs layer
18
  4d1e94121e00: Pulling fs layer
19
+ 4612e05a72cf: Waiting
20
+ 9b2beae78beb: Waiting
21
  79c03e12047a: Waiting
22
  51393fef6543: Waiting
23
  5571c1cd7f43: Waiting
24
  65564f077fec: Waiting
25
  4d1e94121e00: Waiting
 
 
26
  30e209609427: Verifying Checksum
27
  30e209609427: Download complete
28
  801bfaa63ef2: Verifying Checksum
 
29
  320f26ee9b1c: Verifying Checksum
30
  320f26ee9b1c: Download complete
31
  801bfaa63ef2: Pull complete
32
+ 79c03e12047a: Verifying Checksum
33
+ 79c03e12047a: Download complete
34
  30e209609427: Pull complete
35
+ 9b2beae78beb: Verifying Checksum
36
+ 9b2beae78beb: Download complete
37
  4612e05a72cf: Verifying Checksum
38
  4612e05a72cf: Download complete
39
  320f26ee9b1c: Pull complete
 
 
40
  4612e05a72cf: Pull complete
41
+ 65564f077fec: Verifying Checksum
42
+ 65564f077fec: Download complete
43
  9b2beae78beb: Pull complete
 
44
  5571c1cd7f43: Verifying Checksum
45
  5571c1cd7f43: Download complete
46
+ 79c03e12047a: Pull complete
 
47
  51393fef6543: Verifying Checksum
48
  51393fef6543: Download complete
49
  4d1e94121e00: Verifying Checksum
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: icyapril, manatarms, thillcf, deuill, epatryk, jacobbednarz
3
  Tags: cloudflare, seo, ssl, ddos, speed, security, cdn, performance, free
4
  Requires at least: 3.4
5
  Tested up to: 5.9
6
- Stable tag: 4.10.0
7
  Requires PHP: 7.2
8
  License: BSD-3-Clause
9
 
@@ -99,6 +99,10 @@ Yes, Cloudflare works with, and helps speed up your site even more, if you have
99
 
100
  == Changelog ==
101
 
 
 
 
 
102
  = 4.10.0 - 2022-06-03 =
103
 
104
  * Ignore feed URLs in cache purge operations unless a cache override is in place.
3
  Tags: cloudflare, seo, ssl, ddos, speed, security, cdn, performance, free
4
  Requires at least: 3.4
5
  Tested up to: 5.9
6
+ Stable tag: 4.10.1
7
  Requires PHP: 7.2
8
  License: BSD-3-Clause
9
 
99
 
100
  == Changelog ==
101
 
102
+ = 4.10.1 - 2022-06-06 =
103
+
104
+ * Fix logic for ignoring cache purge operations.
105
+
106
  = 4.10.0 - 2022-06-03 =
107
 
108
  * Ignore feed URLs in cache purge operations unless a cache override is in place.
src/WordPress/Hooks.php CHANGED
@@ -194,7 +194,7 @@ class Hooks
194
  // default.
195
  if (!$hasCacheOverride) {
196
  $this->logger->debug("cache everything behaviour found, filtering out feeds URLs");
197
- $urls = array_filter($urls, array($this, "pathIsForFeeds"));
198
  }
199
 
200
  // Fetch the page rules and should we not have any hints of cache
@@ -538,7 +538,7 @@ class Hooks
538
  }
539
 
540
  /**
541
- * pathIsForFeeds accepts a string URL and checks if the path matches any
542
  * known feed paths such as "/feed", "/feed/", "/feed/rdf/", "/feed/rss/",
543
  * "/feed/atom/", "/author/foo/feed", "/comments/feed", "/shop/feed",
544
  * "/tag/.../feed/", etc.
@@ -546,10 +546,10 @@ class Hooks
546
  * @param mixed $value
547
  * @return bool
548
  */
549
- private function pathIsForFeeds($value)
550
  {
551
  $parsed_url = parse_url($value, PHP_URL_PATH);
552
- return (bool) preg_match('/\/feed(?:\/(?:atom\/?|r(?:df|ss)\/?)?)?$/', $parsed_url);
553
  }
554
 
555
  /**
194
  // default.
195
  if (!$hasCacheOverride) {
196
  $this->logger->debug("cache everything behaviour found, filtering out feeds URLs");
197
+ $urls = array_filter($urls, array($this, "pathIsNotForFeeds"));
198
  }
199
 
200
  // Fetch the page rules and should we not have any hints of cache
538
  }
539
 
540
  /**
541
+ * pathIsNotForFeeds accepts a string URL and checks if the path doesn't matches any
542
  * known feed paths such as "/feed", "/feed/", "/feed/rdf/", "/feed/rss/",
543
  * "/feed/atom/", "/author/foo/feed", "/comments/feed", "/shop/feed",
544
  * "/tag/.../feed/", etc.
546
  * @param mixed $value
547
  * @return bool
548
  */
549
+ private function pathIsNotForFeeds($value)
550
  {
551
  $parsed_url = parse_url($value, PHP_URL_PATH);
552
+ return (bool) !preg_match('/\/feed(?:\/(?:atom\/?|r(?:df|ss)\/?)?)?$/', $parsed_url);
553
  }
554
 
555
  /**
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitb9de7da753869a269212f140b6d97421::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInita417a38e081dddc69cfab1b745a899ae::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitb9de7da753869a269212f140b6d97421
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitb9de7da753869a269212f140b6d97421
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitb9de7da753869a269212f140b6d97421', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInitb9de7da753869a269212f140b6d97421', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInitb9de7da753869a269212f140b6d97421::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitb9de7da753869a269212f140b6d97421
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInitb9de7da753869a269212f140b6d97421::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequireb9de7da753869a269212f140b6d97421($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequireb9de7da753869a269212f140b6d97421($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInita417a38e081dddc69cfab1b745a899ae
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInita417a38e081dddc69cfab1b745a899ae', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInita417a38e081dddc69cfab1b745a899ae', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInita417a38e081dddc69cfab1b745a899ae::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInita417a38e081dddc69cfab1b745a899ae::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequirea417a38e081dddc69cfab1b745a899ae($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequirea417a38e081dddc69cfab1b745a899ae($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitb9de7da753869a269212f140b6d97421
8
  {
9
  public static $files = array (
10
  '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php',
@@ -69,10 +69,10 @@ class ComposerStaticInitb9de7da753869a269212f140b6d97421
69
  public static function getInitializer(ClassLoader $loader)
70
  {
71
  return \Closure::bind(function () use ($loader) {
72
- $loader->prefixLengthsPsr4 = ComposerStaticInitb9de7da753869a269212f140b6d97421::$prefixLengthsPsr4;
73
- $loader->prefixDirsPsr4 = ComposerStaticInitb9de7da753869a269212f140b6d97421::$prefixDirsPsr4;
74
- $loader->prefixesPsr0 = ComposerStaticInitb9de7da753869a269212f140b6d97421::$prefixesPsr0;
75
- $loader->classMap = ComposerStaticInitb9de7da753869a269212f140b6d97421::$classMap;
76
 
77
  }, null, ClassLoader::class);
78
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInita417a38e081dddc69cfab1b745a899ae
8
  {
9
  public static $files = array (
10
  '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php',
69
  public static function getInitializer(ClassLoader $loader)
70
  {
71
  return \Closure::bind(function () use ($loader) {
72
+ $loader->prefixLengthsPsr4 = ComposerStaticInita417a38e081dddc69cfab1b745a899ae::$prefixLengthsPsr4;
73
+ $loader->prefixDirsPsr4 = ComposerStaticInita417a38e081dddc69cfab1b745a899ae::$prefixDirsPsr4;
74
+ $loader->prefixesPsr0 = ComposerStaticInita417a38e081dddc69cfab1b745a899ae::$prefixesPsr0;
75
+ $loader->classMap = ComposerStaticInita417a38e081dddc69cfab1b745a899ae::$classMap;
76
 
77
  }, null, ClassLoader::class);
78
  }