> However, I do wish it had a refresh interval parameter instead of a
datetime parameter.
The date parameter can be used interval. Example of caching for 15 minutes:
<cfparam name="bCachePage" default="true">
<cfset request.dtCacheTimeout = DateAdd("n", -15, Now())>
<cfset cacheString = "#cgi.path_info##cgi.query_string#">
.... do some modifications on the cacheString to make it a valid filename ...
<cfif len(cacheString) gt 255>
<!--- GT 255 chars causes invalid filenames. --->
<cfset bCachePage = false>
<cfset request.dtCacheTimeout = Now()>
<cfset cacheString = "pagenametoolongtocache">
</cfif>
<cfa_generatedContentCache
bUseCache = "#bCachePage#"
cacheName = "#cacheString#"
cacheType = "file"
cacheDir = "#cacheDir#"
dtCacheTimeout = "#request.dtCacheTimeout#"
>
....
</cfa_generatedContentCache>
Regards,
Johan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.