305: Optimizing and Caching in Drupal 8

As your Drupal 8 site grows in popularity, you may need to improve the performance of the site. This will help it load faster and reduce the amount of resources by making fewer calls the the database or reducing extraneous processes. Below is a quick guide on the options that Drupal 8 offers to improve your site.

How to optimize your Drupal 8 site

  1. Log into your Drupal 8 admin dashboard.
  2. edu Drupal 8  common images select configuration

    Using the menu bar at the top of the screen click on the Menu option and then the Configuration tab from the second menu bar.

  3. edu Drupal 8 305 1 click performance

    Once on the Configuration page, look for the Development category and click on the Performance link.

  4. edu Drupal 8 305 2 performance settings

    From this page, you will see the various ways to improve the performance of your Drupal 8 website. .

    Clear CacheClick this button to clear the current cache.
    Page cache maximum ageThis sets the maximum age for caching, ther are various settings ranging from to 1 day. Pages passing this threshold will be re-queried and cached again.
    Aggregate CSS filesChecking this causes Drupal to combine the CSS files for easier and faster reference.
    Aggregate JavaScript filesChecking this causes Drupal to combine the Javascript files for easier and faster reference.
  5. Once you have set the different settings to your specific design, click on the Save configuration button at the bottom of the page to activate them.

Was this article helpful? Let us know!