Home>Server Settings > Caching

Server Settings > Caching

Configure caching settings in ColdFusion Administrator

Settings on this page manage how ColdFusion caches cfm and cfc files, as well as the database cache invoked with cachedwithin or cachedafter.

Maximum Number of Cached Templates

ColdFusion compiles your templates into Java classes and caches them in memory for improved performance. It is recommended to set this cache value to match the total number of ColdFusion templates in your application. The default setting is 1024 templates.

Trusted Cache

When enabled, this setting allows ColdFusion to bypass checking for file changes, which significantly improves performance in production environments. However, this requires a careful deployment process since template changes will not be reflected until the cache is cleared or the server is restarted. This setting is disabled by default.

Cache Template in Request

This setting controls how often templates are checked for changes within a single request. When enabled, ColdFusion will cache the template for the duration of the request, which can reduce disk I/O operations. This setting is enabled by default.

Component Cache

This setting prevents ColdFusion from resolving component paths on every request, improving application performance. It is generally recommended to keep this enabled. This setting is enabled by default.

Save Class Files

When enabled, ColdFusion saves the compiled Java class files to disk. This can be helpful for identifying which code is actively being used in your application. This setting is enabled by default.

Cache Web Server Paths

This setting caches page paths for improved performance. However, it is recommended only for single-site installations, as it can cause issues in multi-site environments. This setting is disabled by default.

Maximum Number of Cached Queries

This setting limits the number of query resultsets that can be cached in memory. You should monitor your system's memory usage when adjusting this value to avoid running out of available memory. The default setting is 100 cached queries.

Use Internal Cache to Store Queries

This setting allows ColdFusion to use Ehcache for query result storage instead of the built-in cache. You also have the option to fall back to internal storage if needed. This setting is unchecked by default.

Additional Help

Stuck?

Convective can help solve even the toughest ColdFusion issues. We've been doing it for over 20 years. Find out more.