Thanks, Cilefen, for the reply. Please find my answers below
1. Was there a version of Drupal where this did not occur?
We are currently using version 10.3.6 for a multilingual site with domain access, involving multiple domains. However, we are experiencing cache crashes with this setup.
Interestingly, we have a similar configuration running on version 10.1.6 for another site, and there are no such issues there. From my research, even downgrading the problematic system to a previous version does not resolve the error.
It seems the issue is tied to the complexity of the system. The site with no cache issues is less complex, while the site experiencing the error is significantly more complex, which the cache mechanism appears unable to handle.
2. Are there any errors logged by Drupal?
At the moment, there are no specific error messages related to this issue in the Drupal logs. However, I have checked the recent log entries, and there are no entries specifically related to cache clearing or the "Enable translation" checkbox.
3. You marked this issue as a bug in the "cache system" core component. Is the site using the default database cache backend or another?
The site is using the default database cache backend along with Cloudflare for caching.
4. Are any patches applied to the site?
Yes, patches have been applied to the site. All updates and patches have been applied via Composer.
5. Which modules are installed and what are their versions?
The following core modules are installed on Drupal 10.3.6 for Multilanguage and translation
Content Translation (content_translation module)
Configuration Translation (configuration_translation module)
Locale (locale module)
Language (language module)
6. Is the bug platform-specific? Have you been able to reproduce it on Drupal sites that are not hosted the same way?
The issue seems to be platform-specific, as I have been unable to reproduce it on a local environment without Cloudflare or Pantheonโs caching
vikas500 โ created an issue.
Modify the code as needed to correctly handle the Language object in twig file. Remember, you should access properties or methods of the Language object (like getId() for the language code) instead of trying to print the object directly.
Error Code:- <span class="icpdlogo"><img src="{{ base_path ~ directory }}/images/icpd-30-logoinverted-{{ language }}.png" alt="ICPD"></span>
Correct Code:- <span class="icpdlogo"><img src="{{ base_path ~ directory }}/images/icpd-30-logoinverted-{{ language.getId() }}.png" alt="ICPD"></span>
Thank You!