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
Follow-up of #2395143-199: YAML parsing is very slow, cache it with FileCache. FileCacheFactory::setPrefix()
is called even when no hash_salt
is configured. Usage of the file cache / apc during the early installer will result in orphaned cache items.
Proposed resolution
Only initialize/use the FileCacheFactory
if the site has the hash_salt
setting.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#1 | 2474077-only-use-filecache-if-hash-salt-is-present.diff | 1.89 KB | znerol |
Comments
Comment #1
znerol CreditAttribution: znerol commentedComment #3
Fabianx CreditAttribution: Fabianx for Acquia commentedWe could set a NullFileCache if the hashSalt is not present.
The default FileCache class needs a $prefix.
Comment #4
BerdirYeah, what Fabianx said, that probably makes sense.
Comment #17
catchThis no longer uses the hash salt:
Closing as outdated.