Issue Bug Closed

#88178Page cache is deleted, when an uncached (Extbase) Plugin performs a redirect

Helmut Hummel 04/19/19, 15:23 updated 05/07/19, 12:10

Description

There is a legitimate case that a plugin performs a redirect (sends Location header).
Usually such plugins are defined as uncached.
Uncached plugins are called, even when the rest of the page remains cached.

With the change applied for #83755 any redirect performed by such plugins, leads to the complete page cache being deleted.

On a side note (and the reason I ran into this), rendering frontend pages on CLI with the goal to warm up the cache is not possible any more after this change,
because http_response_code() always returns false when called from cli SAPI.

Reviews 3