Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The page cache is currently broken.
To reproduce:
- Install D7
- Visit admin/settings/performance, turn on the page cache to "Normal", set the cache lifetime to 5 minutes.
- Logout, reload the front page twice as an anonymous user, huge explosion ensues.
There is an IF statement with the following: $user->cache > $cache->created
, but the $user variable is not defined. We just need to add the global $user declaration to the top of the function.
Comment | File | Size | Author |
---|---|---|---|
drupal_cache_broken.patch | 480 bytes | quicksketch | |
Comments
Comment #1
quicksketchI suppose we have tags for this sort of thing...
Comment #2
catchLooks good. We have tests for the page cache, so assuming this the fatal error bug not helping us again.
Comment #3
webchickOopsie.
Committed. Thanks!