Caching

Caching is essential for site performance and should generally be enabled. However, there are circumstances where you might want to disable or clear your cache. The dashboard provides an easy way to manage your cache behavior with just a few clicks.

Caching in Automad operates across multiple levels to optimize website performance and content processing. Pages are rendered only when necessary or when their maximum lifetime is reached, and content is crawled only when changes occur to pages, files, or settings. For detailed information about all available settings and actions, check the Caching tab in the System Settings section.

During Development

While developing templates, disable caching entirely to see updates to template code immediately without waiting for cache expiration.

Configuration File Settings

You can also directly edit caching preferences in the config/config.php file or through server environment variables. Note that all time settings are defined in seconds.

<?php return <<< 'JSON'
{
    "AM_CACHE_ENABLED": true,
    "AM_CACHE_LIFETIME": 43200,
    "AM_CACHE_MONITOR_DELAY": 120
}
JSON;
Configuration Email Configuration