---
title: "How to Optimize Drupal"
description: "As your Drupal website grows in popularity, you’ll need to find ways to improve the performance without sacrificing stability. In background processes, Drupal performance optimization helps your..."
url: https://www.inmotionhosting.com/support/edu/drupal/drupal-performance-optimization/
date: 2013-12-04
modified: 2023-09-13
author: "InMotion Hosting Contributor"
categories: ["Drupal"]
type: post
lang: en
---

# How to Optimize Drupal

As your Drupal website grows in popularity, you’ll need to find ways to improve the performance without sacrificing stability. In background processes, Drupal performance optimization helps your content load faster and reduces the amount of server resources. Regarding online visitors and potential customers, competitive website speed boosts your [search engine optimization (SEO)](https://www.inmotionhosting.com/support/website/seo/seo-getting-started-guide/) for higher visibility. Note how the back-end improvements and SEO benefits affect each other.

Below we will cover:

- [Drupal Caching](#caching)
- [Drupal Database Optimization](#database)
- [Other Drupal Performance Optimization Methods](#performance)

Ignite your online presence with cutting-edge [Drupal Website Hosting](https://www.inmotionhosting.com/drupal-hosting). Elevate speed, security, and reliability for a seamless website experience.

## Drupal Caching

Caching allows the server to store copies of webpages on the server. This allows web pages to load faster and reduce the overall load on the server. If you don’t multiple changes to your Drupal website daily on a regular basis, Drupal’s native caching features are great options to speed up your page load times without configuring server level software.

![Drupal performance optimization settings](https://www.inmotionhosting.com/support/wp-content/uploads/2021/03/drupal-9-performance-settings-287x300.png)

1. [Log into your Drupal dashboard](https://www.inmotionhosting.com/support/edu/drupal/how-to-log-into-the-drupal-admin-dashboard/).
2. At the top, select **Configuration**.
3. Under *Development*, select **Performance**.
4. Under *Caching*, select a `cache-control` maximum age between 1 minute and 1 day from the drop-down menu.
5. Under *Bandwidth Optimization*, both **Aggregate CSS files** and **Aggregate JavaScript files** should already be checked. compressing these files easy Make changes as necessary.
6. At the bottom, select **Save configuration**.

If at any time you do make a lot of major changes that you want to display immediately, select **Clear all caches** at the top of the page.

## Drupal Database Optimization

Optimizing your Drupal database can dramatically affect how fast your website loads, especially if you’ve served a large amount of content over the course of years. The easiest way to do this is with the [**DB Maintenance module**](https://www.drupal.org/project/db_maintenance).

The DB Maintenance module is unavailable for Drupal 9 as of March 2021.

1. [Log into your Drupal dashboard](https://www.inmotionhosting.com/support/edu/drupal/how-to-log-into-the-drupal-admin-dashboard/).
2. [Install the DB Maintenance module](https://www.inmotionhosting.com/support/edu/drupal/drupal-install-modules/).
3. At the top, select **Site Configuration**, then **DB Maintenance**.
4. Select how often to optimize the tables (this runs a [cron job](https://www.inmotionhosting.com/support/edu/cpanel/how-to-run-a-cron-job/)).
5. Select the database tables you want to optimize.
6. Click **Optimize now** to optimize the selected tables now or **Save Configuration** to start optimizing database tables per your new schedule.

## Other Drupal Performance Optimization Methods

Below are other methods to optimize Drupal depending on your server environment and business needs. This includes server applications and other integrations.

[**phpMyAdmin**](/support/website/how-to-use-phpmyadmin-to-optimize-a-database/) has the ability to optimize individual tables within a database. The database administration tool is included by default in cPanel server hosting but can also be [installed manually](/support/website/installing-phpmyadmin-on-your-account/).

[**Static Suite**](https://www.drupal.org/project/static_suite) is a Drupal module that exports your front-end website into a pure HTML duplicate to improve performance and mitigate PHP security issues. You can publish the static conversion to a separate directory or web server depending on your needs. Static site generation is often an overlooked option for [website speed optimization](https://www.inmotionhosting.com/blog/website-speed-optimization-guide/). However, this is a worthy consideration for websites without interactive elements such as comments and contact forms.

[**PHP-FastCGI Process Manager (PHP-FPM)**](https://www.inmotionhosting.com/support/server/php-fpm/php-fpm-the-future-of-php-handling/) supersedes [suPHP](https://www.inmotionhosting.com/support/server/php-fpm/suphp-vs-php-fpm/) and to enhance performance with PHP-based applications without bogging down web servers. Once you enable [PHP-FPM in WebHost Manager (WHM)](https://www.inmotionhosting.com/support/server/php-fpm/how-to-enable-php-fpm-using-whm/), follow our guide for [optimal PHP-FPM settings](https://www.inmotionhosting.com/support/server/php-fpm/php-fpm-settings-for-better-optimization/) for Drupal performance optimization.

[**NGINX**](https://www.inmotionhosting.com/support/server/nginx/nginx-reverse-proxy-edition/) is part of our [UltraStack](https://www.inmotionhosting.com/support/product-guides/what-is-ultrastack/) caching solution in [Shared Hosting](/shared-hosting) and [Cloud WordPress Hosting](/wordpress-vps) plans. Anyone with root access to their web server can install NGINX and [Redis](https://www.inmotionhosting.com/support/server/how-to-install-redis-on-your-vps-dedicated-server/) for better overall server performance.

**Load-balancing** is an excellent way to optimize large websites if you have three or more [cloud servers](https://www.inmotionhosting.com/cloud-vps). Although it may seem difficult to do, we have guides on how to easily set up a load balancer with [Apache](https://www.inmotionhosting.com/support/server/apache/apache-load-balancer/) and [HAProxy](https://www.inmotionhosting.com/support/product-guides/cloud-server/haproxy-load-balancer/) within minutes.

Feel free to ask any additional questions regarding Drupal performance in our [Community Forum](https://www.inmotionhosting.com/support/questions/) for further assistance. Learn more from our [Drupal Education Channel](https://www.inmotionhosting.com/support/edu/drupal/).
