---
title: "About caching in Site Factory"
date: "2024-02-14T06:18:38+00:00"
summary: "Discover how Site Factory uses Drupal and Varnish caching to boost website performance. Learn about cache types, clearing methods, and strategies to optimize your site's speed and user experience."
image:
type: "page"
url: "/site-factory/about-caching-site-factory"
id: "800e2f80-2f56-4f3b-9c47-c01d7dff9b41"
---

To improve your website’s performance, Site Factory caches several files and webpages that make up your website using both Drupal caching (used directly by your website) and Varnish® caching (top-level cache used to increase general performance).

When a visitor views your website, if the webpage they request was previously served to a different visitor and is in a cache, Site Factory provides the webpage directly from the cache. This allows the visitor to see the page several times faster than if Site Factory had to prepare and send the page to the visitor from its source files. Since pages are served faster, caching enables more pages to be served to more visitors.

Site Factory caches the following data types relating to your website’s structure:

*   Drupal website databases
*   Anonymous webpages and static content
*   CSS files
*   JavaScript files

Note

*   Site Factory doesn’t cache signed-in user webpages and dynamic content.
*   If you are using a [Content Delivery Network (CDN)](/site-factory/manage/cdn) with your website, clearing Varnish and Drupal caches does _not_ also clear your CDN cache.

Clearing the caches
-------------------

Site Factory allows you to clear your websites’ Drupal and Varnish caches, which causes any visitor requested webpages and files to be regenerated from the source files. Newly requested visitor items will then be placed in the cache for use with future visitors.

Clearing caches also refreshes the thumbnail images of your websites on the Factory interface, site collections, and groups webpages.

To clear your website’s Varnish and Drupal caches, you can use the Site Factory user interface, the Site Factory API, or a specially-formatted command from the command-line interface:

*   _Clearing caches through the user interface_ To clear your website’s caches (including Varnish caches) with the Site Factory Management Console interface, complete the following steps:
    1.  [Sign in](/site-factory/login) to the Site Factory Management Console, find the website for which you want to clear its caches, and then open its actions menu.
        
        ![Site actions menu](https://acquia.widen.net/content/kvbxcuqhct/jpeg/site-factory_clearing-caches.jpeg?position=c&color=ffffffff&quality=80&u=u1mnox)
        
    2.  Click **Clear caches**.
    3.  To confirm that you want to clear the website’s caches, click **Clear caches**.
*   _Clearing caches with the Site Factory API_ The [Site Factory REST API](/site-factory/extend/api) includes a `cache-clear` endpoint for clearing a website’s Drupal and Varnish caches programmatically.
*   _Clearing a single page from cache using the command line_ For instructions about how to clear a single webpage with the command line, see [Manually purging a page from Varnish cache](/acquia-cloud-platform/performance/varnish/manually-purge).

Increasing the cache lifetime
-----------------------------

By default, Site Factory sets the maximum age for items included in the Varnish page cache (`page_cache_maximum_age`) to 3600 seconds (60 minutes). See [Increasing caching in Site Factory](/site-factory/manage/website/cache/modify) for several methods of increasing the cache lifetime value from the default.