Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

diskCache
Project Home Forums Contact Project

Author: Choop (All RIAForge projects by this author)
Last Updated: April 14, 2009 3:47 PM
Version: 1
Views: 4,782
Downloads: 256
License: Apache License, Version 2

Description:

A file-based caching mechanism to enhance performance of managed content

Caching of content is based on URL; wrap tag call around contents to cache.
<cf_diskCache>{content}</cf_diskCache>
   No required attributes.
   Optional attributes:
   directory - an absolute path to a cache directory
   timespan - age in days of expiration, use #CreateTimeSpan(d,h,m,s)#

Flushing clears the entire cache specified. call as empty tag, self-closing tag, or start/end tags.
<cf_diskCache flushcache="true" directory="#somedirectory#"/>
   Required attributes:
   flushcache - must evaluate to true in order to flush the cache. other values prevent caching from operation in any sense
   directory - an absolute path to a cache directory

Requirements:

java.io.File support
<cffunction> support