I use Mura CMS and that is how first I discovered that something is wrong with caching. I have enabled caching for Mura and pages were loading slow. I have other places that I use caching and the same problem. In order to test this issue I created a new folder in the root of my website with two files application.cfc:
component {
this.name = "myApplication";
this.applicationTimeout = CreateTimeSpan(10, 0, 0, 0); //10 days
this.datasource = "my_datasource";
this.sessionManagement = true;
this.sessionTimeout = CreateTimeSpan(0, 0, 30, 0); //30 minutes
function onApplicationStart() {
return true;
}
function onRequest( string targetPage ) {
include arguments.targetPage;
}
}
and index.cfm:
<cfoutput>
<cfset CacheValue = CacheGet("name") />
CacheValue is NULL: #isNull(CacheValue)#<br>
<cfif isNull(CacheValue)>
<cfset CachePut("name", 'var to save', CreateTimeSpan(1,0,0,0) ) />
</cfif>
Dump CacheValue:<br>
<cfdump var="#CacheValue#" />
<cfscript>
Writedump(CacheGetProperties());
Writedump(CacheGetAllIds());
</cfscript>
</cfoutput>
First time visiting the page https://www.nji-inm.ca/test I get the following response:
CacheValue is NULL: YES
Dump CacheValue:
If I refresh the page I get:

But if I wait couple of minutes and refresh the page I am back to:
CacheValue is NULL: YES
Dump CacheValue:
It looks similar to an issue CF-4204066 reported in ColdFusion 11 Update 18. The fix for both the issues will remain the same.
Please contact cfsup@adobe.com to get the hotfix for this issue.
-Nimit
ColdFusion Team