Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Spectra-Talk
Cold Fusion Spectra - Technical
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Spectra :
product's home
product's list home
 
  Archived TallyList / Spectra-Talk: 
Subject: RE: Page Templates vs. Objects
Johan Coens (28p/+0r)     Posted: Wednesday 11 Apr 2001
This post: 40 views, +0 rating

> 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 spectra-talk-request@houseoffusion.com with 'unsubscribe' in the body.


Similar Subject Line Posts (+/- two weeks of this post)
RE: Page Templates vs. Objects  11 Apr 2001   (39 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (29 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (33 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (33 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (33 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (43 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (34 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (34 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (34 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (30 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (40 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001 (this post)   (40 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (30 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (30 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (37 v/ +0 r)
Re: Page Templates vs. Objects  11 Apr 2001   (37 v/ +0 r)
RE: Page Templates vs. Objects  11 Apr 2001   (36 v/ +0 r)
RE: Page Templates vs. Objects  10 Apr 2001   (35 v/ +0 r)
Page Templates vs. Objects  09 Apr 2001   (35 v/ +0 r)
 

Send a reply to the Spectra-Talk list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000