- Merge request !26Issue #3293631: Do not call drupal_flush_all_caches() directly β (Open) created by artycal
drupal_flush_all_caches()
does many things, and I believe we don't need all of those in the ContentSyncConfigForm
form.
In #3222577-22: ServiceNotFoundException You have requested a non-existent service "language_negotiator" - hook_modules_installed() β @alexpott mentioned:
Most of the time you add drupal_flush_all_caches() to your code it's as a result of "ugh I dunno what's going on here perhaps this fixes it" and every time you do that you're doing it wrong. There are not many valid use cases for regular code that is triggered during an extension life-cycle.
I agree with him, so let's use this task to investigate what exactly should be invalidated/rebuilt once we save that config page and don't execute drupal_flush_all_caches()
manually.
Needs review
1.3
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.