Consider whether HttpCache offers any significant benefit over the existing page cache

Created on 23 May 2012, over 12 years ago
Updated 14 June 2023, over 1 year ago

One of the big intended benefits from the Kernel work is the ability to use Http caching logic directly rather than implementing our own caching logic. The Kernel component includes a PHP-space implementation of an Http reverse proxy cache. We want to use that for all kernel-called page segments; that is, the entire page itself plus all of the sub-requests. The easiest way to do that is to move the kernel from the 'kernel' DI entry to some other entry, and then make the 'kernel' entry an instance of the HttpCache object, configured with a Store class of our own that saves stuff to the Drupal cache system.

For now, we should let the HttpCache use whatever logic it uses. We can refine it later after the pieces are in place.

Of course, we'll also want a way to disable that cache object when a site is running behind a real proxy cache like Varnish, which is going to be way faster anyway.

This probably needs to wait for #1595146: Load the HttpKernel from the DI Container β†’

πŸ“Œ Task
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 6 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States Crell

Live updates comments and jobs are added and updated live.
  • needs profiling

    It may affect performance, and thus requires in-depth technical reviews and profiling.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    This has been PNMI for 7+ years. Think it can be closed out but if still a valid task in 11.x we should move to Active or NW with an updated issue summary. Till then closing out though.

Production build 0.71.5 2024