Version Description
Download this release
Release Info
Developer | jetpackisbestpack |
Plugin | WP Super Cache |
Version | 1.9 |
Comparing to | |
See all releases |
Code changes from version 1.8 to 1.9
- CHANGELOG.md +12 -3
- composer.json +6 -4
- composer.lock +46 -335
- inc/delete-cache-button.php +19 -1
- package.json +1 -1
- readme.txt +7 -7
- wp-cache-phase2.php +20 -3
- wp-cache.php +1 -1
CHANGELOG.md
CHANGED
@@ -5,14 +5,22 @@
|
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
## [1.8] - 2022-08-16
|
9 |
### Added
|
10 |
-
- Added WP Super cache to the repo.
|
11 |
- PHP 8 Support: Ensure the expected value for the $auto_release in sem_get is used.
|
|
|
|
|
12 |
|
13 |
### Fixed
|
14 |
-
- Fixed
|
15 |
-
-
|
16 |
|
17 |
## 1.7.9 - 2022-06-07
|
18 |
|
@@ -602,4 +610,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
602 |
|
603 |
Misc fixes
|
604 |
|
|
|
605 |
[1.8]: https://github.com/Automattic/wp-super-cache/compare/v1.7.9...v1.8
|
5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 |
+
## [1.9] - 2022-09-16
|
9 |
+
### Added
|
10 |
+
- Cache deletion: add new hook to trigger actions after a successful cache deletion from the admin bar. [#26202]
|
11 |
+
|
12 |
+
### Fixed
|
13 |
+
- Fixes to URL parsing to prevent cache pollution issues around URLs with double-slashes. [#26247]
|
14 |
+
|
15 |
## [1.8] - 2022-08-16
|
16 |
### Added
|
|
|
17 |
- PHP 8 Support: Ensure the expected value for the $auto_release in sem_get is used.
|
18 |
+
- Added a link to give feedback on WP Super Cache
|
19 |
+
- Added information on Jetpack Boost
|
20 |
|
21 |
### Fixed
|
22 |
+
- Fixed jQuery deprecated notice
|
23 |
+
- Fixed replacing dirname(__FILE__) with __DIR__
|
24 |
|
25 |
## 1.7.9 - 2022-06-07
|
26 |
|
610 |
|
611 |
Misc fixes
|
612 |
|
613 |
+
[1.9]: https://github.com/Automattic/wp-super-cache/compare/v1.8...v1.9
|
614 |
[1.8]: https://github.com/Automattic/wp-super-cache/compare/v1.7.9...v1.8
|
composer.json
CHANGED
@@ -3,10 +3,9 @@
|
|
3 |
"description": "A very fast caching engine for WordPress that produces static html files.",
|
4 |
"type": "wordpress-plugin",
|
5 |
"license": "GPL-2.0-or-later",
|
6 |
-
"require": {},
|
7 |
"require-dev": {
|
8 |
"yoast/phpunit-polyfills": "1.0.3",
|
9 |
-
"automattic/jetpack-changelogger": "^3.2"
|
10 |
},
|
11 |
"autoload": {
|
12 |
"classmap": [
|
@@ -30,12 +29,15 @@
|
|
30 |
"minimum-stability": "dev",
|
31 |
"prefer-stable": true,
|
32 |
"extra": {
|
33 |
-
"
|
|
|
34 |
"changelogger": {
|
35 |
"link-template": "https://github.com/Automattic/wp-super-cache/compare/v${old}...v${new}",
|
36 |
"versioning": "wordpress"
|
37 |
},
|
|
|
38 |
"release-branch-prefix": "super-cache",
|
39 |
-
"wp-plugin-slug": "wp-super-cache"
|
|
|
40 |
}
|
41 |
}
|
3 |
"description": "A very fast caching engine for WordPress that produces static html files.",
|
4 |
"type": "wordpress-plugin",
|
5 |
"license": "GPL-2.0-or-later",
|
|
|
6 |
"require-dev": {
|
7 |
"yoast/phpunit-polyfills": "1.0.3",
|
8 |
+
"automattic/jetpack-changelogger": "^3.2.1"
|
9 |
},
|
10 |
"autoload": {
|
11 |
"classmap": [
|
29 |
"minimum-stability": "dev",
|
30 |
"prefer-stable": true,
|
31 |
"extra": {
|
32 |
+
"autorelease": true,
|
33 |
+
"autotagger": true,
|
34 |
"changelogger": {
|
35 |
"link-template": "https://github.com/Automattic/wp-super-cache/compare/v${old}...v${new}",
|
36 |
"versioning": "wordpress"
|
37 |
},
|
38 |
+
"mirror-repo": "Automattic/wp-super-cache",
|
39 |
"release-branch-prefix": "super-cache",
|
40 |
+
"wp-plugin-slug": "wp-super-cache",
|
41 |
+
"wp-svn-autopublish": true
|
42 |
}
|
43 |
}
|
composer.lock
CHANGED
@@ -4,21 +4,21 @@
|
|
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": "
|
8 |
"packages": [],
|
9 |
"packages-dev": [
|
10 |
{
|
11 |
"name": "automattic/jetpack-changelogger",
|
12 |
-
"version": "v3.2.
|
13 |
"source": {
|
14 |
"type": "git",
|
15 |
"url": "https://github.com/Automattic/jetpack-changelogger.git",
|
16 |
-
"reference": "
|
17 |
},
|
18 |
"dist": {
|
19 |
"type": "zip",
|
20 |
-
"url": "https://api.github.com/repos/Automattic/jetpack-changelogger/zipball/
|
21 |
-
"reference": "
|
22 |
"shasum": ""
|
23 |
},
|
24 |
"require": {
|
@@ -60,9 +60,9 @@
|
|
60 |
],
|
61 |
"description": "Jetpack Changelogger tool. Allows for managing changelogs by dropping change files into a changelog directory with each PR.",
|
62 |
"support": {
|
63 |
-
"source": "https://github.com/Automattic/jetpack-changelogger/tree/v3.2.
|
64 |
},
|
65 |
-
"time": "2022-
|
66 |
},
|
67 |
{
|
68 |
"name": "doctrine/instantiator",
|
@@ -195,16 +195,16 @@
|
|
195 |
},
|
196 |
{
|
197 |
"name": "nikic/php-parser",
|
198 |
-
"version": "v4.
|
199 |
"source": {
|
200 |
"type": "git",
|
201 |
"url": "https://github.com/nikic/PHP-Parser.git",
|
202 |
-
"reference": "
|
203 |
},
|
204 |
"dist": {
|
205 |
"type": "zip",
|
206 |
-
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/
|
207 |
-
"reference": "
|
208 |
"shasum": ""
|
209 |
},
|
210 |
"require": {
|
@@ -245,9 +245,9 @@
|
|
245 |
],
|
246 |
"support": {
|
247 |
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
248 |
-
"source": "https://github.com/nikic/PHP-Parser/tree/v4.
|
249 |
},
|
250 |
-
"time": "2022-
|
251 |
},
|
252 |
{
|
253 |
"name": "phar-io/manifest",
|
@@ -360,252 +360,25 @@
|
|
360 |
},
|
361 |
"time": "2022-02-21T01:04:05+00:00"
|
362 |
},
|
363 |
-
{
|
364 |
-
"name": "phpdocumentor/reflection-common",
|
365 |
-
"version": "2.2.0",
|
366 |
-
"source": {
|
367 |
-
"type": "git",
|
368 |
-
"url": "https://github.com/phpDocumentor/ReflectionCommon.git",
|
369 |
-
"reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b"
|
370 |
-
},
|
371 |
-
"dist": {
|
372 |
-
"type": "zip",
|
373 |
-
"url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b",
|
374 |
-
"reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b",
|
375 |
-
"shasum": ""
|
376 |
-
},
|
377 |
-
"require": {
|
378 |
-
"php": "^7.2 || ^8.0"
|
379 |
-
},
|
380 |
-
"type": "library",
|
381 |
-
"extra": {
|
382 |
-
"branch-alias": {
|
383 |
-
"dev-2.x": "2.x-dev"
|
384 |
-
}
|
385 |
-
},
|
386 |
-
"autoload": {
|
387 |
-
"psr-4": {
|
388 |
-
"phpDocumentor\\Reflection\\": "src/"
|
389 |
-
}
|
390 |
-
},
|
391 |
-
"notification-url": "https://packagist.org/downloads/",
|
392 |
-
"license": [
|
393 |
-
"MIT"
|
394 |
-
],
|
395 |
-
"authors": [
|
396 |
-
{
|
397 |
-
"name": "Jaap van Otterdijk",
|
398 |
-
"email": "opensource@ijaap.nl"
|
399 |
-
}
|
400 |
-
],
|
401 |
-
"description": "Common reflection classes used by phpdocumentor to reflect the code structure",
|
402 |
-
"homepage": "http://www.phpdoc.org",
|
403 |
-
"keywords": [
|
404 |
-
"FQSEN",
|
405 |
-
"phpDocumentor",
|
406 |
-
"phpdoc",
|
407 |
-
"reflection",
|
408 |
-
"static analysis"
|
409 |
-
],
|
410 |
-
"support": {
|
411 |
-
"issues": "https://github.com/phpDocumentor/ReflectionCommon/issues",
|
412 |
-
"source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x"
|
413 |
-
},
|
414 |
-
"time": "2020-06-27T09:03:43+00:00"
|
415 |
-
},
|
416 |
-
{
|
417 |
-
"name": "phpdocumentor/reflection-docblock",
|
418 |
-
"version": "5.3.0",
|
419 |
-
"source": {
|
420 |
-
"type": "git",
|
421 |
-
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
422 |
-
"reference": "622548b623e81ca6d78b721c5e029f4ce664f170"
|
423 |
-
},
|
424 |
-
"dist": {
|
425 |
-
"type": "zip",
|
426 |
-
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170",
|
427 |
-
"reference": "622548b623e81ca6d78b721c5e029f4ce664f170",
|
428 |
-
"shasum": ""
|
429 |
-
},
|
430 |
-
"require": {
|
431 |
-
"ext-filter": "*",
|
432 |
-
"php": "^7.2 || ^8.0",
|
433 |
-
"phpdocumentor/reflection-common": "^2.2",
|
434 |
-
"phpdocumentor/type-resolver": "^1.3",
|
435 |
-
"webmozart/assert": "^1.9.1"
|
436 |
-
},
|
437 |
-
"require-dev": {
|
438 |
-
"mockery/mockery": "~1.3.2",
|
439 |
-
"psalm/phar": "^4.8"
|
440 |
-
},
|
441 |
-
"type": "library",
|
442 |
-
"extra": {
|
443 |
-
"branch-alias": {
|
444 |
-
"dev-master": "5.x-dev"
|
445 |
-
}
|
446 |
-
},
|
447 |
-
"autoload": {
|
448 |
-
"psr-4": {
|
449 |
-
"phpDocumentor\\Reflection\\": "src"
|
450 |
-
}
|
451 |
-
},
|
452 |
-
"notification-url": "https://packagist.org/downloads/",
|
453 |
-
"license": [
|
454 |
-
"MIT"
|
455 |
-
],
|
456 |
-
"authors": [
|
457 |
-
{
|
458 |
-
"name": "Mike van Riel",
|
459 |
-
"email": "me@mikevanriel.com"
|
460 |
-
},
|
461 |
-
{
|
462 |
-
"name": "Jaap van Otterdijk",
|
463 |
-
"email": "account@ijaap.nl"
|
464 |
-
}
|
465 |
-
],
|
466 |
-
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
467 |
-
"support": {
|
468 |
-
"issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
|
469 |
-
"source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0"
|
470 |
-
},
|
471 |
-
"time": "2021-10-19T17:43:47+00:00"
|
472 |
-
},
|
473 |
-
{
|
474 |
-
"name": "phpdocumentor/type-resolver",
|
475 |
-
"version": "1.6.1",
|
476 |
-
"source": {
|
477 |
-
"type": "git",
|
478 |
-
"url": "https://github.com/phpDocumentor/TypeResolver.git",
|
479 |
-
"reference": "77a32518733312af16a44300404e945338981de3"
|
480 |
-
},
|
481 |
-
"dist": {
|
482 |
-
"type": "zip",
|
483 |
-
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3",
|
484 |
-
"reference": "77a32518733312af16a44300404e945338981de3",
|
485 |
-
"shasum": ""
|
486 |
-
},
|
487 |
-
"require": {
|
488 |
-
"php": "^7.2 || ^8.0",
|
489 |
-
"phpdocumentor/reflection-common": "^2.0"
|
490 |
-
},
|
491 |
-
"require-dev": {
|
492 |
-
"ext-tokenizer": "*",
|
493 |
-
"psalm/phar": "^4.8"
|
494 |
-
},
|
495 |
-
"type": "library",
|
496 |
-
"extra": {
|
497 |
-
"branch-alias": {
|
498 |
-
"dev-1.x": "1.x-dev"
|
499 |
-
}
|
500 |
-
},
|
501 |
-
"autoload": {
|
502 |
-
"psr-4": {
|
503 |
-
"phpDocumentor\\Reflection\\": "src"
|
504 |
-
}
|
505 |
-
},
|
506 |
-
"notification-url": "https://packagist.org/downloads/",
|
507 |
-
"license": [
|
508 |
-
"MIT"
|
509 |
-
],
|
510 |
-
"authors": [
|
511 |
-
{
|
512 |
-
"name": "Mike van Riel",
|
513 |
-
"email": "me@mikevanriel.com"
|
514 |
-
}
|
515 |
-
],
|
516 |
-
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
|
517 |
-
"support": {
|
518 |
-
"issues": "https://github.com/phpDocumentor/TypeResolver/issues",
|
519 |
-
"source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1"
|
520 |
-
},
|
521 |
-
"time": "2022-03-15T21:29:03+00:00"
|
522 |
-
},
|
523 |
-
{
|
524 |
-
"name": "phpspec/prophecy",
|
525 |
-
"version": "v1.15.0",
|
526 |
-
"source": {
|
527 |
-
"type": "git",
|
528 |
-
"url": "https://github.com/phpspec/prophecy.git",
|
529 |
-
"reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13"
|
530 |
-
},
|
531 |
-
"dist": {
|
532 |
-
"type": "zip",
|
533 |
-
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13",
|
534 |
-
"reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13",
|
535 |
-
"shasum": ""
|
536 |
-
},
|
537 |
-
"require": {
|
538 |
-
"doctrine/instantiator": "^1.2",
|
539 |
-
"php": "^7.2 || ~8.0, <8.2",
|
540 |
-
"phpdocumentor/reflection-docblock": "^5.2",
|
541 |
-
"sebastian/comparator": "^3.0 || ^4.0",
|
542 |
-
"sebastian/recursion-context": "^3.0 || ^4.0"
|
543 |
-
},
|
544 |
-
"require-dev": {
|
545 |
-
"phpspec/phpspec": "^6.0 || ^7.0",
|
546 |
-
"phpunit/phpunit": "^8.0 || ^9.0"
|
547 |
-
},
|
548 |
-
"type": "library",
|
549 |
-
"extra": {
|
550 |
-
"branch-alias": {
|
551 |
-
"dev-master": "1.x-dev"
|
552 |
-
}
|
553 |
-
},
|
554 |
-
"autoload": {
|
555 |
-
"psr-4": {
|
556 |
-
"Prophecy\\": "src/Prophecy"
|
557 |
-
}
|
558 |
-
},
|
559 |
-
"notification-url": "https://packagist.org/downloads/",
|
560 |
-
"license": [
|
561 |
-
"MIT"
|
562 |
-
],
|
563 |
-
"authors": [
|
564 |
-
{
|
565 |
-
"name": "Konstantin Kudryashov",
|
566 |
-
"email": "ever.zet@gmail.com",
|
567 |
-
"homepage": "http://everzet.com"
|
568 |
-
},
|
569 |
-
{
|
570 |
-
"name": "Marcello Duarte",
|
571 |
-
"email": "marcello.duarte@gmail.com"
|
572 |
-
}
|
573 |
-
],
|
574 |
-
"description": "Highly opinionated mocking framework for PHP 5.3+",
|
575 |
-
"homepage": "https://github.com/phpspec/prophecy",
|
576 |
-
"keywords": [
|
577 |
-
"Double",
|
578 |
-
"Dummy",
|
579 |
-
"fake",
|
580 |
-
"mock",
|
581 |
-
"spy",
|
582 |
-
"stub"
|
583 |
-
],
|
584 |
-
"support": {
|
585 |
-
"issues": "https://github.com/phpspec/prophecy/issues",
|
586 |
-
"source": "https://github.com/phpspec/prophecy/tree/v1.15.0"
|
587 |
-
},
|
588 |
-
"time": "2021-12-08T12:19:24+00:00"
|
589 |
-
},
|
590 |
{
|
591 |
"name": "phpunit/php-code-coverage",
|
592 |
-
"version": "9.2.
|
593 |
"source": {
|
594 |
"type": "git",
|
595 |
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
596 |
-
"reference": "
|
597 |
},
|
598 |
"dist": {
|
599 |
"type": "zip",
|
600 |
-
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/
|
601 |
-
"reference": "
|
602 |
"shasum": ""
|
603 |
},
|
604 |
"require": {
|
605 |
"ext-dom": "*",
|
606 |
"ext-libxml": "*",
|
607 |
"ext-xmlwriter": "*",
|
608 |
-
"nikic/php-parser": "^4.
|
609 |
"php": ">=7.3",
|
610 |
"phpunit/php-file-iterator": "^3.0.3",
|
611 |
"phpunit/php-text-template": "^2.0.2",
|
@@ -654,7 +427,7 @@
|
|
654 |
],
|
655 |
"support": {
|
656 |
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
|
657 |
-
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.
|
658 |
},
|
659 |
"funding": [
|
660 |
{
|
@@ -662,7 +435,7 @@
|
|
662 |
"type": "github"
|
663 |
}
|
664 |
],
|
665 |
-
"time": "2022-
|
666 |
},
|
667 |
{
|
668 |
"name": "phpunit/php-file-iterator",
|
@@ -907,16 +680,16 @@
|
|
907 |
},
|
908 |
{
|
909 |
"name": "phpunit/phpunit",
|
910 |
-
"version": "9.5.
|
911 |
"source": {
|
912 |
"type": "git",
|
913 |
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
914 |
-
"reference": "
|
915 |
},
|
916 |
"dist": {
|
917 |
"type": "zip",
|
918 |
-
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/
|
919 |
-
"reference": "
|
920 |
"shasum": ""
|
921 |
},
|
922 |
"require": {
|
@@ -931,7 +704,6 @@
|
|
931 |
"phar-io/manifest": "^2.0.3",
|
932 |
"phar-io/version": "^3.0.2",
|
933 |
"php": ">=7.3",
|
934 |
-
"phpspec/prophecy": "^1.12.1",
|
935 |
"phpunit/php-code-coverage": "^9.2.13",
|
936 |
"phpunit/php-file-iterator": "^3.0.5",
|
937 |
"phpunit/php-invoker": "^3.1.1",
|
@@ -946,12 +718,9 @@
|
|
946 |
"sebastian/global-state": "^5.0.1",
|
947 |
"sebastian/object-enumerator": "^4.0.3",
|
948 |
"sebastian/resource-operations": "^3.0.3",
|
949 |
-
"sebastian/type": "^3.
|
950 |
"sebastian/version": "^3.0.2"
|
951 |
},
|
952 |
-
"require-dev": {
|
953 |
-
"phpspec/prophecy-phpunit": "^2.0.1"
|
954 |
-
},
|
955 |
"suggest": {
|
956 |
"ext-soap": "*",
|
957 |
"ext-xdebug": "*"
|
@@ -993,7 +762,7 @@
|
|
993 |
],
|
994 |
"support": {
|
995 |
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
996 |
-
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.
|
997 |
},
|
998 |
"funding": [
|
999 |
{
|
@@ -1005,7 +774,7 @@
|
|
1005 |
"type": "github"
|
1006 |
}
|
1007 |
],
|
1008 |
-
"time": "2022-
|
1009 |
},
|
1010 |
{
|
1011 |
"name": "psr/container",
|
@@ -1917,16 +1686,16 @@
|
|
1917 |
},
|
1918 |
{
|
1919 |
"name": "sebastian/type",
|
1920 |
-
"version": "3.
|
1921 |
"source": {
|
1922 |
"type": "git",
|
1923 |
"url": "https://github.com/sebastianbergmann/type.git",
|
1924 |
-
"reference": "
|
1925 |
},
|
1926 |
"dist": {
|
1927 |
"type": "zip",
|
1928 |
-
"url": "https://api.github.com/repos/sebastianbergmann/type/zipball/
|
1929 |
-
"reference": "
|
1930 |
"shasum": ""
|
1931 |
},
|
1932 |
"require": {
|
@@ -1938,7 +1707,7 @@
|
|
1938 |
"type": "library",
|
1939 |
"extra": {
|
1940 |
"branch-alias": {
|
1941 |
-
"dev-master": "3.
|
1942 |
}
|
1943 |
},
|
1944 |
"autoload": {
|
@@ -1961,7 +1730,7 @@
|
|
1961 |
"homepage": "https://github.com/sebastianbergmann/type",
|
1962 |
"support": {
|
1963 |
"issues": "https://github.com/sebastianbergmann/type/issues",
|
1964 |
-
"source": "https://github.com/sebastianbergmann/type/tree/3.
|
1965 |
},
|
1966 |
"funding": [
|
1967 |
{
|
@@ -1969,7 +1738,7 @@
|
|
1969 |
"type": "github"
|
1970 |
}
|
1971 |
],
|
1972 |
-
"time": "2022-
|
1973 |
},
|
1974 |
{
|
1975 |
"name": "sebastian/version",
|
@@ -2026,16 +1795,16 @@
|
|
2026 |
},
|
2027 |
{
|
2028 |
"name": "symfony/console",
|
2029 |
-
"version": "v6.0.
|
2030 |
"source": {
|
2031 |
"type": "git",
|
2032 |
"url": "https://github.com/symfony/console.git",
|
2033 |
-
"reference": "
|
2034 |
},
|
2035 |
"dist": {
|
2036 |
"type": "zip",
|
2037 |
-
"url": "https://api.github.com/repos/symfony/console/zipball/
|
2038 |
-
"reference": "
|
2039 |
"shasum": ""
|
2040 |
},
|
2041 |
"require": {
|
@@ -2101,7 +1870,7 @@
|
|
2101 |
"terminal"
|
2102 |
],
|
2103 |
"support": {
|
2104 |
-
"source": "https://github.com/symfony/console/tree/v6.0.
|
2105 |
},
|
2106 |
"funding": [
|
2107 |
{
|
@@ -2117,7 +1886,7 @@
|
|
2117 |
"type": "tidelift"
|
2118 |
}
|
2119 |
],
|
2120 |
-
"time": "2022-
|
2121 |
},
|
2122 |
{
|
2123 |
"name": "symfony/polyfill-ctype",
|
@@ -2594,16 +2363,16 @@
|
|
2594 |
},
|
2595 |
{
|
2596 |
"name": "symfony/string",
|
2597 |
-
"version": "v6.0.
|
2598 |
"source": {
|
2599 |
"type": "git",
|
2600 |
"url": "https://github.com/symfony/string.git",
|
2601 |
-
"reference": "
|
2602 |
},
|
2603 |
"dist": {
|
2604 |
"type": "zip",
|
2605 |
-
"url": "https://api.github.com/repos/symfony/string/zipball/
|
2606 |
-
"reference": "
|
2607 |
"shasum": ""
|
2608 |
},
|
2609 |
"require": {
|
@@ -2659,7 +2428,7 @@
|
|
2659 |
"utf8"
|
2660 |
],
|
2661 |
"support": {
|
2662 |
-
"source": "https://github.com/symfony/string/tree/v6.0.
|
2663 |
},
|
2664 |
"funding": [
|
2665 |
{
|
@@ -2675,7 +2444,7 @@
|
|
2675 |
"type": "tidelift"
|
2676 |
}
|
2677 |
],
|
2678 |
-
"time": "2022-
|
2679 |
},
|
2680 |
{
|
2681 |
"name": "theseer/tokenizer",
|
@@ -2727,64 +2496,6 @@
|
|
2727 |
],
|
2728 |
"time": "2021-07-28T10:34:58+00:00"
|
2729 |
},
|
2730 |
-
{
|
2731 |
-
"name": "webmozart/assert",
|
2732 |
-
"version": "1.11.0",
|
2733 |
-
"source": {
|
2734 |
-
"type": "git",
|
2735 |
-
"url": "https://github.com/webmozarts/assert.git",
|
2736 |
-
"reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991"
|
2737 |
-
},
|
2738 |
-
"dist": {
|
2739 |
-
"type": "zip",
|
2740 |
-
"url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991",
|
2741 |
-
"reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991",
|
2742 |
-
"shasum": ""
|
2743 |
-
},
|
2744 |
-
"require": {
|
2745 |
-
"ext-ctype": "*",
|
2746 |
-
"php": "^7.2 || ^8.0"
|
2747 |
-
},
|
2748 |
-
"conflict": {
|
2749 |
-
"phpstan/phpstan": "<0.12.20",
|
2750 |
-
"vimeo/psalm": "<4.6.1 || 4.6.2"
|
2751 |
-
},
|
2752 |
-
"require-dev": {
|
2753 |
-
"phpunit/phpunit": "^8.5.13"
|
2754 |
-
},
|
2755 |
-
"type": "library",
|
2756 |
-
"extra": {
|
2757 |
-
"branch-alias": {
|
2758 |
-
"dev-master": "1.10-dev"
|
2759 |
-
}
|
2760 |
-
},
|
2761 |
-
"autoload": {
|
2762 |
-
"psr-4": {
|
2763 |
-
"Webmozart\\Assert\\": "src/"
|
2764 |
-
}
|
2765 |
-
},
|
2766 |
-
"notification-url": "https://packagist.org/downloads/",
|
2767 |
-
"license": [
|
2768 |
-
"MIT"
|
2769 |
-
],
|
2770 |
-
"authors": [
|
2771 |
-
{
|
2772 |
-
"name": "Bernhard Schussek",
|
2773 |
-
"email": "bschussek@gmail.com"
|
2774 |
-
}
|
2775 |
-
],
|
2776 |
-
"description": "Assertions to validate method input/output with nice error messages.",
|
2777 |
-
"keywords": [
|
2778 |
-
"assert",
|
2779 |
-
"check",
|
2780 |
-
"validate"
|
2781 |
-
],
|
2782 |
-
"support": {
|
2783 |
-
"issues": "https://github.com/webmozarts/assert/issues",
|
2784 |
-
"source": "https://github.com/webmozarts/assert/tree/1.11.0"
|
2785 |
-
},
|
2786 |
-
"time": "2022-06-03T18:03:27+00:00"
|
2787 |
-
},
|
2788 |
{
|
2789 |
"name": "wikimedia/at-ease",
|
2790 |
"version": "v2.1.0",
|
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": "79334316f1f331330f5c6a33cb56a227",
|
8 |
"packages": [],
|
9 |
"packages-dev": [
|
10 |
{
|
11 |
"name": "automattic/jetpack-changelogger",
|
12 |
+
"version": "v3.2.1",
|
13 |
"source": {
|
14 |
"type": "git",
|
15 |
"url": "https://github.com/Automattic/jetpack-changelogger.git",
|
16 |
+
"reference": "f9bb6e3fd5ca2436637041578067875eba4c3d49"
|
17 |
},
|
18 |
"dist": {
|
19 |
"type": "zip",
|
20 |
+
"url": "https://api.github.com/repos/Automattic/jetpack-changelogger/zipball/f9bb6e3fd5ca2436637041578067875eba4c3d49",
|
21 |
+
"reference": "f9bb6e3fd5ca2436637041578067875eba4c3d49",
|
22 |
"shasum": ""
|
23 |
},
|
24 |
"require": {
|
60 |
],
|
61 |
"description": "Jetpack Changelogger tool. Allows for managing changelogs by dropping change files into a changelog directory with each PR.",
|
62 |
"support": {
|
63 |
+
"source": "https://github.com/Automattic/jetpack-changelogger/tree/v3.2.1"
|
64 |
},
|
65 |
+
"time": "2022-08-26T18:35:48+00:00"
|
66 |
},
|
67 |
{
|
68 |
"name": "doctrine/instantiator",
|
195 |
},
|
196 |
{
|
197 |
"name": "nikic/php-parser",
|
198 |
+
"version": "v4.15.1",
|
199 |
"source": {
|
200 |
"type": "git",
|
201 |
"url": "https://github.com/nikic/PHP-Parser.git",
|
202 |
+
"reference": "0ef6c55a3f47f89d7a374e6f835197a0b5fcf900"
|
203 |
},
|
204 |
"dist": {
|
205 |
"type": "zip",
|
206 |
+
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/0ef6c55a3f47f89d7a374e6f835197a0b5fcf900",
|
207 |
+
"reference": "0ef6c55a3f47f89d7a374e6f835197a0b5fcf900",
|
208 |
"shasum": ""
|
209 |
},
|
210 |
"require": {
|
245 |
],
|
246 |
"support": {
|
247 |
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
248 |
+
"source": "https://github.com/nikic/PHP-Parser/tree/v4.15.1"
|
249 |
},
|
250 |
+
"time": "2022-09-04T07:30:47+00:00"
|
251 |
},
|
252 |
{
|
253 |
"name": "phar-io/manifest",
|
360 |
},
|
361 |
"time": "2022-02-21T01:04:05+00:00"
|
362 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
{
|
364 |
"name": "phpunit/php-code-coverage",
|
365 |
+
"version": "9.2.17",
|
366 |
"source": {
|
367 |
"type": "git",
|
368 |
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
369 |
+
"reference": "aa94dc41e8661fe90c7316849907cba3007b10d8"
|
370 |
},
|
371 |
"dist": {
|
372 |
"type": "zip",
|
373 |
+
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/aa94dc41e8661fe90c7316849907cba3007b10d8",
|
374 |
+
"reference": "aa94dc41e8661fe90c7316849907cba3007b10d8",
|
375 |
"shasum": ""
|
376 |
},
|
377 |
"require": {
|
378 |
"ext-dom": "*",
|
379 |
"ext-libxml": "*",
|
380 |
"ext-xmlwriter": "*",
|
381 |
+
"nikic/php-parser": "^4.14",
|
382 |
"php": ">=7.3",
|
383 |
"phpunit/php-file-iterator": "^3.0.3",
|
384 |
"phpunit/php-text-template": "^2.0.2",
|
427 |
],
|
428 |
"support": {
|
429 |
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
|
430 |
+
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.17"
|
431 |
},
|
432 |
"funding": [
|
433 |
{
|
435 |
"type": "github"
|
436 |
}
|
437 |
],
|
438 |
+
"time": "2022-08-30T12:24:04+00:00"
|
439 |
},
|
440 |
{
|
441 |
"name": "phpunit/php-file-iterator",
|
680 |
},
|
681 |
{
|
682 |
"name": "phpunit/phpunit",
|
683 |
+
"version": "9.5.24",
|
684 |
"source": {
|
685 |
"type": "git",
|
686 |
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
687 |
+
"reference": "d0aa6097bef9fd42458a9b3c49da32c6ce6129c5"
|
688 |
},
|
689 |
"dist": {
|
690 |
"type": "zip",
|
691 |
+
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d0aa6097bef9fd42458a9b3c49da32c6ce6129c5",
|
692 |
+
"reference": "d0aa6097bef9fd42458a9b3c49da32c6ce6129c5",
|
693 |
"shasum": ""
|
694 |
},
|
695 |
"require": {
|
704 |
"phar-io/manifest": "^2.0.3",
|
705 |
"phar-io/version": "^3.0.2",
|
706 |
"php": ">=7.3",
|
|
|
707 |
"phpunit/php-code-coverage": "^9.2.13",
|
708 |
"phpunit/php-file-iterator": "^3.0.5",
|
709 |
"phpunit/php-invoker": "^3.1.1",
|
718 |
"sebastian/global-state": "^5.0.1",
|
719 |
"sebastian/object-enumerator": "^4.0.3",
|
720 |
"sebastian/resource-operations": "^3.0.3",
|
721 |
+
"sebastian/type": "^3.1",
|
722 |
"sebastian/version": "^3.0.2"
|
723 |
},
|
|
|
|
|
|
|
724 |
"suggest": {
|
725 |
"ext-soap": "*",
|
726 |
"ext-xdebug": "*"
|
762 |
],
|
763 |
"support": {
|
764 |
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
765 |
+
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.24"
|
766 |
},
|
767 |
"funding": [
|
768 |
{
|
774 |
"type": "github"
|
775 |
}
|
776 |
],
|
777 |
+
"time": "2022-08-30T07:42:16+00:00"
|
778 |
},
|
779 |
{
|
780 |
"name": "psr/container",
|
1686 |
},
|
1687 |
{
|
1688 |
"name": "sebastian/type",
|
1689 |
+
"version": "3.2.0",
|
1690 |
"source": {
|
1691 |
"type": "git",
|
1692 |
"url": "https://github.com/sebastianbergmann/type.git",
|
1693 |
+
"reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e"
|
1694 |
},
|
1695 |
"dist": {
|
1696 |
"type": "zip",
|
1697 |
+
"url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e",
|
1698 |
+
"reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e",
|
1699 |
"shasum": ""
|
1700 |
},
|
1701 |
"require": {
|
1707 |
"type": "library",
|
1708 |
"extra": {
|
1709 |
"branch-alias": {
|
1710 |
+
"dev-master": "3.2-dev"
|
1711 |
}
|
1712 |
},
|
1713 |
"autoload": {
|
1730 |
"homepage": "https://github.com/sebastianbergmann/type",
|
1731 |
"support": {
|
1732 |
"issues": "https://github.com/sebastianbergmann/type/issues",
|
1733 |
+
"source": "https://github.com/sebastianbergmann/type/tree/3.2.0"
|
1734 |
},
|
1735 |
"funding": [
|
1736 |
{
|
1738 |
"type": "github"
|
1739 |
}
|
1740 |
],
|
1741 |
+
"time": "2022-09-12T14:47:03+00:00"
|
1742 |
},
|
1743 |
{
|
1744 |
"name": "sebastian/version",
|
1795 |
},
|
1796 |
{
|
1797 |
"name": "symfony/console",
|
1798 |
+
"version": "v6.0.12",
|
1799 |
"source": {
|
1800 |
"type": "git",
|
1801 |
"url": "https://github.com/symfony/console.git",
|
1802 |
+
"reference": "c5c2e313aa682530167c25077d6bdff36346251e"
|
1803 |
},
|
1804 |
"dist": {
|
1805 |
"type": "zip",
|
1806 |
+
"url": "https://api.github.com/repos/symfony/console/zipball/c5c2e313aa682530167c25077d6bdff36346251e",
|
1807 |
+
"reference": "c5c2e313aa682530167c25077d6bdff36346251e",
|
1808 |
"shasum": ""
|
1809 |
},
|
1810 |
"require": {
|
1870 |
"terminal"
|
1871 |
],
|
1872 |
"support": {
|
1873 |
+
"source": "https://github.com/symfony/console/tree/v6.0.12"
|
1874 |
},
|
1875 |
"funding": [
|
1876 |
{
|
1886 |
"type": "tidelift"
|
1887 |
}
|
1888 |
],
|
1889 |
+
"time": "2022-08-23T20:52:30+00:00"
|
1890 |
},
|
1891 |
{
|
1892 |
"name": "symfony/polyfill-ctype",
|
2363 |
},
|
2364 |
{
|
2365 |
"name": "symfony/string",
|
2366 |
+
"version": "v6.0.12",
|
2367 |
"source": {
|
2368 |
"type": "git",
|
2369 |
"url": "https://github.com/symfony/string.git",
|
2370 |
+
"reference": "3a975ba1a1508ad97df45f4590f55b7cc4c1a0a0"
|
2371 |
},
|
2372 |
"dist": {
|
2373 |
"type": "zip",
|
2374 |
+
"url": "https://api.github.com/repos/symfony/string/zipball/3a975ba1a1508ad97df45f4590f55b7cc4c1a0a0",
|
2375 |
+
"reference": "3a975ba1a1508ad97df45f4590f55b7cc4c1a0a0",
|
2376 |
"shasum": ""
|
2377 |
},
|
2378 |
"require": {
|
2428 |
"utf8"
|
2429 |
],
|
2430 |
"support": {
|
2431 |
+
"source": "https://github.com/symfony/string/tree/v6.0.12"
|
2432 |
},
|
2433 |
"funding": [
|
2434 |
{
|
2444 |
"type": "tidelift"
|
2445 |
}
|
2446 |
],
|
2447 |
+
"time": "2022-08-12T18:05:20+00:00"
|
2448 |
},
|
2449 |
{
|
2450 |
"name": "theseer/tokenizer",
|
2496 |
],
|
2497 |
"time": "2021-07-28T10:34:58+00:00"
|
2498 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2499 |
{
|
2500 |
"name": "wikimedia/at-ease",
|
2501 |
"version": "v2.1.0",
|
inc/delete-cache-button.php
CHANGED
@@ -108,7 +108,25 @@ function wpsc_admin_bar_delete_cache() {
|
|
108 |
$req_path = isset( $_POST['path'] ) ? sanitize_text_field( stripslashes( $_POST['path'] ) ) : '';
|
109 |
$valid_nonce = ( $req_path && isset( $_POST['nonce'] ) ) ? wp_verify_nonce( $_POST['nonce'], 'delete-cache-' . $_POST['path'] . '_' . $_POST['admin'] ) : false;
|
110 |
|
111 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
if ( $_POST['admin'] ) {
|
113 |
wp_safe_redirect( $referer );
|
114 |
} else {
|
108 |
$req_path = isset( $_POST['path'] ) ? sanitize_text_field( stripslashes( $_POST['path'] ) ) : '';
|
109 |
$valid_nonce = ( $req_path && isset( $_POST['nonce'] ) ) ? wp_verify_nonce( $_POST['nonce'], 'delete-cache-' . $_POST['path'] . '_' . $_POST['admin'] ) : false;
|
110 |
|
111 |
+
if (
|
112 |
+
$valid_nonce
|
113 |
+
&& $referer
|
114 |
+
&& $req_path
|
115 |
+
&& (
|
116 |
+
false !== stripos( $referer, $req_path )
|
117 |
+
|| 0 === stripos( $referer, wp_login_url() )
|
118 |
+
)
|
119 |
+
) {
|
120 |
+
/**
|
121 |
+
* Hook into the cache deletion process after a successful cache deletion from the admin bar button.
|
122 |
+
*
|
123 |
+
* @since 1.9
|
124 |
+
*
|
125 |
+
* @param string $req_path Path of the page where the cache flush was requested.
|
126 |
+
* @param string $referer Referer URL.
|
127 |
+
*/
|
128 |
+
do_action( 'wpsc_after_delete_cache_admin_bar', $req_path, $referer );
|
129 |
+
|
130 |
if ( $_POST['admin'] ) {
|
131 |
wp_safe_redirect( $referer );
|
132 |
} else {
|
package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"private": true,
|
3 |
"name": "@automattic/jetpack-super-cache",
|
4 |
-
"version": "1.
|
5 |
"description": "A very fast caching engine for WordPress that produces static html files.",
|
6 |
"homepage": "https://jetpack.com",
|
7 |
"bugs": {
|
1 |
{
|
2 |
"private": true,
|
3 |
"name": "@automattic/jetpack-super-cache",
|
4 |
+
"version": "1.9.0",
|
5 |
"description": "A very fast caching engine for WordPress that produces static html files.",
|
6 |
"homepage": "https://jetpack.com",
|
7 |
"bugs": {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: performance, caching, wp-cache, wp-super-cache, cache
|
|
4 |
Requires at least: 5.9
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -268,12 +268,12 @@ Your theme is probably responsive which means it resizes the page to suit whatev
|
|
268 |
|
269 |
|
270 |
== Changelog ==
|
271 |
-
### 1.
|
272 |
-
|
273 |
-
-
|
274 |
-
|
275 |
-
|
276 |
-
-
|
277 |
|
278 |
--------
|
279 |
|
4 |
Requires at least: 5.9
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 1.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
268 |
|
269 |
|
270 |
== Changelog ==
|
271 |
+
### 1.9 - 2022-09-16
|
272 |
+
#### Added
|
273 |
+
- Cache deletion: add new hook to trigger actions after a successful cache deletion from the admin bar.
|
274 |
+
|
275 |
+
#### Fixed
|
276 |
+
- Fixes to URL parsing to prevent cache pollution issues around URLs with double-slashes.
|
277 |
|
278 |
--------
|
279 |
|
wp-cache-phase2.php
CHANGED
@@ -32,6 +32,18 @@ function get_wp_cache_key( $url = false ) {
|
|
32 |
return do_cacheaction( 'wp_cache_key', wp_cache_check_mobile( $WPSC_HTTP_HOST . $server_port . preg_replace( '/#.*$/', '', str_replace( '/index.php', '/', $url ) ) . $wp_cache_gzip_encoding . wp_cache_get_cookies_values() ) );
|
33 |
}
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
function wpsc_remove_tracking_params_from_uri( $uri ) {
|
36 |
global $wpsc_tracking_parameters, $wpsc_ignore_tracking_parameters;
|
37 |
|
@@ -43,7 +55,7 @@ function wpsc_remove_tracking_params_from_uri( $uri ) {
|
|
43 |
return $uri;
|
44 |
}
|
45 |
|
46 |
-
$parsed_url =
|
47 |
$query = array();
|
48 |
|
49 |
if ( isset( $parsed_url['query'] ) ) {
|
@@ -940,11 +952,16 @@ function get_all_supercache_filenames( $dir = '' ) {
|
|
940 |
return $out;
|
941 |
}
|
942 |
|
|
|
|
|
|
|
|
|
|
|
943 |
function supercache_filename() {
|
944 |
global $cached_direct_pages;
|
945 |
|
946 |
// Add support for https and http caching
|
947 |
-
$is_https = (
|
948 |
$extra_str = $is_https ? '-https' : '';
|
949 |
|
950 |
if ( function_exists( 'apply_filters' ) ) {
|
@@ -3421,7 +3438,7 @@ function wpsc_is_get_query() {
|
|
3421 |
static $is_get_query = null;
|
3422 |
|
3423 |
if ( null === $is_get_query ) {
|
3424 |
-
$request_uri =
|
3425 |
$is_get_query = $request_uri && ! empty( $request_uri['query'] );
|
3426 |
}
|
3427 |
|
32 |
return do_cacheaction( 'wp_cache_key', wp_cache_check_mobile( $WPSC_HTTP_HOST . $server_port . preg_replace( '/#.*$/', '', str_replace( '/index.php', '/', $url ) ) . $wp_cache_gzip_encoding . wp_cache_get_cookies_values() ) );
|
33 |
}
|
34 |
|
35 |
+
/**
|
36 |
+
* Parse a partial URL (only the path and query components).
|
37 |
+
*
|
38 |
+
* @param string $partial_uri - The path and query component of a URI to parse.
|
39 |
+
*/
|
40 |
+
function wpsc_parse_partial_url( $partial_uri ) {
|
41 |
+
global $WPSC_HTTP_HOST;
|
42 |
+
|
43 |
+
$scheme = wpsc_is_https() ? 'https://' : 'http://';
|
44 |
+
return parse_url( $scheme . $WPSC_HTTP_HOST . $partial_uri );
|
45 |
+
}
|
46 |
+
|
47 |
function wpsc_remove_tracking_params_from_uri( $uri ) {
|
48 |
global $wpsc_tracking_parameters, $wpsc_ignore_tracking_parameters;
|
49 |
|
55 |
return $uri;
|
56 |
}
|
57 |
|
58 |
+
$parsed_url = wpsc_parse_partial_url( $uri );
|
59 |
$query = array();
|
60 |
|
61 |
if ( isset( $parsed_url['query'] ) ) {
|
952 |
return $out;
|
953 |
}
|
954 |
|
955 |
+
function wpsc_is_https() {
|
956 |
+
// Also supports https requests coming from an nginx reverse proxy
|
957 |
+
return ( ( isset( $_SERVER['HTTPS'] ) && 'on' == strtolower( $_SERVER['HTTPS'] ) ) || ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' == strtolower( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) );
|
958 |
+
}
|
959 |
+
|
960 |
function supercache_filename() {
|
961 |
global $cached_direct_pages;
|
962 |
|
963 |
// Add support for https and http caching
|
964 |
+
$is_https = wpsc_is_https();
|
965 |
$extra_str = $is_https ? '-https' : '';
|
966 |
|
967 |
if ( function_exists( 'apply_filters' ) ) {
|
3438 |
static $is_get_query = null;
|
3439 |
|
3440 |
if ( null === $is_get_query ) {
|
3441 |
+
$request_uri = wpsc_parse_partial_url( $_SERVER['REQUEST_URI'] );
|
3442 |
$is_get_query = $request_uri && ! empty( $request_uri['query'] );
|
3443 |
}
|
3444 |
|
wp-cache.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WP Super Cache
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-super-cache/
|
5 |
* Description: Very fast caching plugin for WordPress.
|
6 |
-
* Version: 1.
|
7 |
* Author: Automattic
|
8 |
* Author URI: https://automattic.com/
|
9 |
* License: GPL2+
|
3 |
* Plugin Name: WP Super Cache
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-super-cache/
|
5 |
* Description: Very fast caching plugin for WordPress.
|
6 |
+
* Version: 1.9
|
7 |
* Author: Automattic
|
8 |
* Author URI: https://automattic.com/
|
9 |
* License: GPL2+
|