1

We have this large website where we would have to deploy html changes in Twig quite often. I'm looking for a solution to clear the Twig cache ONLY. So we do not have to do a general cache rebuild, which consumes a lot of CPU each time. drush cc render does not work, twig html still cached. Any suggestions?

1

Invalidate the twig cache first, like this:

drush php-eval "\Drupal::service('twig')->invalidate();" 
drush cc render
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.