Problem/Motivation

The page cache is currently in a poor state. At least two attempts have been made to entirely rearchitect the system (#1597696: Consider whether HttpCache offers any significant benefit over the existing page cache and later #2177461: Refactor page caching into a service). However the current system suffers from several defects and one major design issue (see step 1 below). As a consequence the conversion from procedural to object-oriented code is not straight forward and risky.

Proposed resolution

In order to unblock progress it is necessary to subdivide the undertaking into multiple steps:

  1. #2257709: Remove the interdependence between the internal page cache and management of the Cache-Control header for external caches
  2. #2263981: Introduce a robust and extensible page cache-policy framework
  3. Convert the internal page cache into a service or a kernel-wrapper (possibly based on Symfony HttpCache) #2348679: Move the remaining procedural page cache code to the page cache stack middleware or #1597696: Consider whether HttpCache offers any significant benefit over the existing page cache

Related defects / issues:

Remaining tasks

User interface changes

API changes

Comments

znerol’s picture

Issue summary: View changes
znerol’s picture

Issue summary: View changes
znerol’s picture

Issue summary: View changes
dawehner’s picture

Thank you for splitting this up and making progress in multiple areas.

Wim Leers’s picture

Thanks, that should make this much easier to get done! :)

znerol’s picture

Issue summary: View changes
Wim Leers’s picture

#2263981: Introduce a robust and extensible page cache-policy framework landed. I unpostponed #1597696: Consider whether HttpCache offers any significant benefit over the existing page cache, but since that was moved to 9.x-dev now, I wasn't sure we would be able to work on it. Crell said we can. So that's probably the current issue in focus.

znerol’s picture

znerol’s picture

moshe weitzman’s picture

Status: Needs review » Active

Nothing to review here. Can we close this meta?

Wim Leers’s picture

The NR state was wrong, but the child issues are still being worked on, so I don't think we can close this just yet.

Berdir’s picture

Status: Active » Fixed

Discussed with @znerol, I think we can close this one now. #2368987: Move internal page caching to a module to avoid relying on config get on runtime is the last step, but we don't need a meta issue to track that, it wasn't even in here.

All other issues have been fixed or closed, so closing this :)

Wim Leers’s picture

And #2368987: Move internal page caching to a module to avoid relying on config get on runtime has now been committed! So definitely fine to close this. Yay!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.