Drupal 10: Turn Off Cache For A Page

\Drupal::service('page_cache_kill_switch')->trigger();

Note that this is more of an emergency/development measure and you should be managing the cache correctly.

Add new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
1 + 11 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.