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.
Problem/Motivation
Since #2252969: HTTP_HOST is not a reliable default prefix, redis cannot be used anymore for the page cache with $conf['page_cache_without_database'] = TRUE
:
PHP Fatal error: Class 'Database' not found in [...]/redis/lib/Redis/AbstractBackend.php on line 33
Proposed resolution
Make sure that the Database
class is always available by directly including /includes/database/database.inc
.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#1 | 2354181-fix-global-prefix.patch | 691 bytes | znerol |
Comments
Comment #1
znerol CreditAttribution: znerol commentedComment #2
znerol CreditAttribution: znerol commentedComment #3
pounardRight, nice catch, I will fix that ASAP, thanks for the report.
Comment #4
Exploratus CreditAttribution: Exploratus commentedThanks
Comment #5
pounard@znerol thank you very much, just switched the include_once to require_once and commited it, next release will have the fix.
Comment #6
pounard