• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

cfcache

Synopsis

<cfcache>

Caches a ColdFusion page for faster access by writing a temporary static HTML version of the page to disk (either server-side or in the client’s browser cache, or both). To cache a ColdFusion template, just add the cfcache tag to the top of the page.

When the cfcache tag caches a page, two files are actually written to the server. First, a temporary file (with a .tmp extension) is created that contains the HTML necessary to generate the static version of the page. A mapping file contains the mapping to the temp file, as well as a timestamp that determines when to expire the cached file. The name for the mapping file is determined by appending the hash of the current URL (see Hash( ) in Appendix B) to cfcache_. This results in filenames like this: cfcache_D6BF3A60769FD03FE598BB2E8490CB11.tmp. When using the cfcache tag, there are a few additional points that should be considered:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint