- 🇳🇱Netherlands seanB Netherlands
Has this been fixed by #3032078: Multiple webheads can cause infinite growth of Twig cache → ?
A bug is occurring where the twig cache directory is getting a unreasonable amount of files (20k+) and performance crawls to a halt, eventually making the server unresponsive.
The problem is caused by a very significant set of circumstances as outlined:
The problem exists in the code https://git.drupalcode.org/project/drupal/blob/8.8.x/core/lib/Drupal/Cor... such that if the timestamps in both application servers don't match, the appservers fight with setting the twig_extension_hash
and the cached files are continuously reset. Depending on load and when the twig cache cleanup task runs, it's not uncommon to see 20k+ files in this directory.
Changing filemtime
to md5_file
fixes the issue but I'm not 100% sure of the performance impact, though I have been running the fix for 6+ months in production with no issues.
Active
11.0 🔥
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Has this been fixed by #3032078: Multiple webheads can cause infinite growth of Twig cache → ?