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 |
Enter a value that specifies the number of templates that ColdFusion 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 |
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 |
Saves to disk the class files that the ColdFusion bytecode compiler generates. During the development phase, it is typically faster if you disable this option. |
Cache Web Server Paths |
Caches ColdFusion page paths for a single server. Clear this option if ColdFusion connects to a web server with multiple websites or multiple virtual websites. |
Maximum Number Of Cached Queries |
Enter 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. When the maximum number of cached queries is reached, the oldest query is dropped from the cache and replaced with the specified query. If you set the maximum number of cached queries to 0, query caching is unlimited. |
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. |