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. 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. Once on the Configuration page, look for the Development category and click on the Performance link.

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

    Clear Cache Click this button to clear the current cache.
    Page cache maximum age This 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 files Checking this causes Drupal to combine the CSS files for easier and faster reference.
    Aggregate JavaScript files Checking 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.

Leave a Reply