
14
CONFIGURING AND ADMINISTERING COLDFUSION 10
Using the ColdFusion Administrator
L
ast
u
p
dated
7/9/2
01
2
Client Variables page
Client variables let you store user information and preferences between sessions. Using information from client
variables, you can customize page content for individual users.
You enable client variable default settings in ColdFusion on the Client Variables page of the Administrator.
ColdFusion lets you store client variables in the following ways:
•
In database tables
Note:
If your data source uses one of the JDBC drivers bundled with ColdFusion 10, ColdFusion can automatically
create the necessary tables. If your data source uses the ODBC Socket or a third-party JDBC driver, you manually
create the necessary CDATA and CGLOBAL database tables.
•
As cookies in the web browsers
•
In the operating system registry
Important:
Adobe recommends that you do not store client variables in the registry because it can critically degrade
performance of the server. If you use the registry to store client variables, you allocate sufficient memory and disk
space.
To override settings specified in the Client Variables page, use the Application.cfc file or the
cfapplication
tag. For
more information, see the
Developing ColdFusion Applications
.
Store client variables in a data source
1
On the Client Variables page, in the Select Data Source to Add as Client Store table, select a data source from the
drop-down.
2
Click Add. The Add/Edit Client Store page for the data source appears.
3
Select options for the data source, as described in the following table. (To exit from the page without saving changes,
click the left-arrow icon.)
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, 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.
Use Internal Cache to Store Queries
When you select this option, at server level, internal cache is used to store cached queries. By default,
cached queries are stored in QUERY region supported by Ehcache.
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.
Clear Template Cache of Specific Folder In the previous releases, you have the option only to clear the trusted cache, which clears the entire
system cache. Now you can limit the clearing to folder level using this option.
Clear Component Cache Now
Empties the component cache. ColdFusion ignores the resolved path for components and try
resolution again.
Clear Query Cache Now
Removes the query cache in the server.
Option
Description