Issue #2528370 by Berdir: Simplify block caching and allow to cache the whole page, including access checks.