CFcache - How to cache a web page in ColdFusion

CFcache - cache web page

cfcache.cfm


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfcache tag: how to cache web page in coldfusion</title>
</head>

<body>
<h2 style="color:SteelBlue; font-style:italic">cfcache tag example: how to cache web pages</h2>
<hr width="450" align="left" color="SteelBlue" />
<br />

<cfcache timespan="#CreateTimeSpan(0,0,5,0)#">

<cfoutput>
 <h3 style="color:DeepPink">
      This page create at #TimeFormat(Now())# and cache for 5 minutes.
    </h3>
</cfoutput>

</body>
</html>





More ColdFusion examples