Caching page

The Caching page of the Administrator contains configuration options that you can set or enable to cache templates, queries, and data sources. These options can significantly affect server performance. The following table describes the settings:

Option

Description

Maximum number of cached templates

Select this option by entering a value that specifies the number of templates that ColdFusion MX caches. For best performance, set this to a value that is large enough to contain your application’s commonly accessed ColdFusion pages, yet small enough to avoid excessive reloading. You can experiment with a range of values on your development server; a suitable starting point is one page per MB of Java Virtual Machine (JVM) size.

Trusted cache

Select this option if you want ColdFusion MX to use cached templates without checking whether they changed. For sites that are not updated frequently, using this option minimizes file system overhead.

Save Class Files

Select this option to save to disk the class files generated by the ColdFusion bytecode compiler. During the development phase, it is typically faster if you disable this option.

Cache web server paths (not available in J2EE configuration)

Select this option to cache ColdFusion page paths for a single server. Clear this option if ColdFusion MX connects to a web server with multiple websites or multiple virtual websites.

Limit the maximum number of cached queries on the server to [n] queries

Select this option by entering a value to limit the maximum number of cached queries that the server maintains. Cached queries allow retrieval of result sets from memory rather than through a database transaction. Because queries reside in memory, and query result set sizes differ, you must provide a limit for the number of cached queries. You enable cached queries with the cachedwithin or cachedafter attributes of the cfquery tag.

Clear Template Cache Now

Empties the template cache. ColdFusion reloads templates into memory the next time they are requested and recompiles them if they have been modified.