- Issue created by @catch
Follow-up from 📌 Render the navigation toolbar in a placeholder Active .
Quoting Fabianx:
The reason for the recursion is to support the following scenario (part of ORIGINAL 2014 big pipe demo):
There is a sleep(1) on the page in a cacheable block content, which sets max-age=0
Then this makes the whole block uncacheable.
As soon as you create a placeholder within the block for the current_time, then the block becomes cacheable again. You still want to create a placeholder for the block as it contains other content that is independent of the page.
With the CachedPlaceholderStrategy with above implementation:
If the block is uncached then the whole block is streamed via big_pipe.
If the blocked is cached then just the placeholder is streamed via big_pipe.
Without the recursive calling of the strategy, this would fail and the `current_time` would again make the whole page slow.
We should try to set up a page matching the scenario above and see whether it's actually a problem or not, then either way that will provide the basis for test coverage.
Active
11.0 🔥
render system