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.
If a class file is not found, the apc class loader will cache NULL. This can cause fatals which make it impossible to clear the cache from the UI, and require manual deletion of the variable from the apc cache.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2087519-xautoload-apc-null.patch | 560 bytes | wodenx |
Comments
Comment #1
wodenx CreditAttribution: wodenx commentedPatch attached.
Comment #2
wodenx CreditAttribution: wodenx commentedComment #3
donquixote CreditAttribution: donquixote commentedThis stuff is copied or "inspired" from the Symfony ApcClassLoader.
https://github.com/symfony/ClassLoader/blob/master/ApcClassLoader.php#L120
When I did that, I was not really sure myself whether caching of NULL values is a good idea.
There are situations imaginable where this causes a problem.
If you say this is causing real-world issues in Drupal, then it is probably time to change it.
Comment #4
donquixote CreditAttribution: donquixote commentedThis is going to be fixed in the upcoming 7.x-4.x branch.
Comment #5
donquixote CreditAttribution: donquixote commentedAnd it is actually fixed in 7.x-3.4.