Problem/Motivation
As there is a new method to invalidate twig cache we should use it in the module. See https://www.drupal.org/node/2908461
Proposed resolution
Change:
PhpStorageFactory::get('twig')->deleteAll();
by
\Drupal::service('twig')->invalidate();
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | admin_toolbar-invalidate_twig-3003678-3-D8.patch | 3.77 KB | romainj |
| #2 | admin_toolbar-invalidate_twig-3003678-2-D8.patch | 1.43 KB | adriancid |
Comments
Comment #2
adriancidComment #3
romainj commentedNew patch with dependency injection.
Comment #4
adriancidThanks @romainj is better now, when do you think we should commit this patch? Once Drupal 8.7 will be released?
Comment #5
romainj commented@adriancid Yes we should wait for D8.7 release at least.
Comment #6
adriancidComment #8
adriancidComment #9
adriancid