system.cache.html.twig

Same filename in other branches
  1. 9 core/modules/help_topics/help_topics/system.cache.html.twig
  2. 8.9.x core/modules/help_topics/help_topics/system.cache.html.twig
  3. 11.x core/modules/system/help_topics/system.cache.html.twig
---
label: 'Clearing the site cache'
related:
  - core.maintenance
---
{% set performance_link_text %}{% trans %}Performance{% endtrans %}{% endset %}
{% set performance_link = render_var(help_route_link(performance_link_text, 'system.performance_settings')) %}
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Clear the data in the site cache.{% endtrans %}</p>
<h2>{% trans %}What is the cache?{% endtrans %}</h2>
<p>{% trans %}Some of the calculations that are done when your site loads a page take a long time to run. To save time when these calculations would need to be done again, their results can be <em>cached</em> in your site's database. There are internal mechanisms to <em>clear</em> cached data when the conditions or assumptions that went into the calculation have changed, but you can also clear cached data manually. When your site is misbehaving, a good first step is to clear the cache and see if the problem goes away.{% endtrans %}</p>
<h2>{% trans %}Steps{% endtrans %}</h2>
<ol>
  <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> &gt; <em>Development</em> &gt; <em>{{ performance_link }}</em>.{% endtrans %}</li>
  <li>{% trans %}Click <em>Clear all caches</em>. Your site's cached data will be cleared.{% endtrans %}</li>
</ol>
<h2>{% trans %}Additional resources{% endtrans %}</h2>
<ul>
    <li>{% trans %}<a href="https://www.drupal.org/docs/user_guide/en/prevent-cache.html">Concept: Cache (Drupal User Guide)</a>{% endtrans %}</li>
</ul>

File

core/modules/system/help_topics/system.cache.html.twig

View source
  1. ---
  2. label: 'Clearing the site cache'
  3. related:
  4. - core.maintenance
  5. ---
  6. {% set performance_link_text %}{% trans %}Performance{% endtrans %}{% endset %}
  7. {% set performance_link = render_var(help_route_link(performance_link_text, 'system.performance_settings')) %}
  8. <h2>{% trans %}Goal{% endtrans %}</h2>
  9. <p>{% trans %}Clear the data in the site cache.{% endtrans %}</p>
  10. <h2>{% trans %}What is the cache?{% endtrans %}</h2>
  11. <p>{% trans %}Some of the calculations that are done when your site loads a page take a long time to run. To save time when these calculations would need to be done again, their results can be <em>cached</em> in your site's database. There are internal mechanisms to <em>clear</em> cached data when the conditions or assumptions that went into the calculation have changed, but you can also clear cached data manually. When your site is misbehaving, a good first step is to clear the cache and see if the problem goes away.{% endtrans %}</p>
  12. <h2>{% trans %}Steps{% endtrans %}</h2>
  13. <ol>
  14. <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> &gt; <em>Development</em> &gt; <em>{{ performance_link }}</em>.{% endtrans %}</li>
  15. <li>{% trans %}Click <em>Clear all caches</em>. Your site's cached data will be cleared.{% endtrans %}</li>
  16. </ol>
  17. <h2>{% trans %}Additional resources{% endtrans %}</h2>
  18. <ul>
  19. <li>{% trans %}<a href="https://www.drupal.org/docs/user_guide/en/prevent-cache.html">Concept: Cache (Drupal User Guide)</a>{% endtrans %}</li>
  20. </ul>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.