This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/HttpKernel/Tests
Fabien Potencier 426a666def minor #22043 Refactor stale-while-revalidate code in HttpCache, add a (first?) test for it (mpdude)
This PR was squashed before being merged into the 3.3-dev branch (closes #22043).

Discussion
----------

Refactor stale-while-revalidate code in HttpCache, add a (first?) test for it

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

I came up with this while trying to hunt a production bug related to handling of stale cache entries under the condition of a busy backend (also see #22033).

It's just a refactoring to make the code more readable plus a new test.

Commits
-------

b14057c88a Refactor stale-while-revalidate code in HttpCache, add a (first?) test for it
2017-03-22 16:02:33 -07:00
..
Bundle Merge branch '2.8' into 3.2 2017-02-18 18:28:00 +01:00
CacheClearer Updated to PHPUnit namespaces 2017-02-20 14:56:45 +01:00
CacheWarmer Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
Config Further refactorings to PHPUnit namespaces 2017-02-21 09:32:25 +01:00
Controller [HttpKernel] Resolve real class when failing on proxies 2017-03-13 10:10:30 +01:00
ControllerMetadata Updated PHPUnit namespaces 2017-02-20 14:34:33 +01:00
DataCollector [WebProfilerBundle] Improved cookie traffic 2017-03-22 21:55:42 +01:00
Debug Updated PHPUnit namespaces 2017-02-20 14:34:33 +01:00
DependencyInjection [FrameworkBundle] Add new "controller.service_arguments" tag to inject services into actions 2017-03-22 21:34:42 +01:00
Event [HttpKernel] Deprecate X-Status-Code for better alternative 2017-02-23 21:30:09 +00:00
EventListener Merge branch '3.2' 2017-03-22 22:42:42 +01:00
Exception Updated PHPUnit namespaces 2017-02-20 14:34:33 +01:00
Fixtures Merge branch '3.2' 2017-03-07 17:28:52 +01:00
Fragment [HttpFoundation] Add $trustedHeaderSet arg to Request::setTrustedProxies() - deprecate not setting it 2017-03-22 21:29:40 +01:00
HttpCache minor #22043 Refactor stale-while-revalidate code in HttpCache, add a (first?) test for it (mpdude) 2017-03-22 16:02:33 -07:00
Profiler [VarDumper] Allow seamless use of Data clones 2017-02-27 21:09:01 +01:00
ClientTest.php Refactored other PHPUnit method calls to work with namespaced PHPUnit 6 2017-02-21 11:04:38 +01:00
HttpKernelTest.php Merge branch '3.2' 2017-03-22 22:42:42 +01:00
KernelTest.php Deprecate the special SYMFONY__ environment variables 2017-03-21 08:27:06 -07:00
Logger.php [2.7] Fix unsilenced deprecation notices 2015-06-16 15:26:24 +02:00
TestHttpKernel.php Added an ArgumentResolver with clean extension point 2016-04-01 11:46:27 +02:00
UriSignerTest.php Allow a custom query string parameter 2017-03-05 11:22:32 +00:00