tracker issue : CF-3161007

select a category, or use search below
(searches all categories and all time range)
Title:

[Caching Enhancements] : When diskpersistent="true", the objects/templates are not being stored in the disk after server restart. It is happening in case of standalone and J2EE setup

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

Reporter/Name(from Bugbase): / ext-user (Kavya Maiya)

Created: 04/09/2012

Components: Caching

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: 282335 /

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Mac 10 All,Win XP All

Vote Count: 0

Problem:
[Caching Enhancements] : When diskpersistent="true", the objects/templates are not being stored in the disk after server restart. It is happening in case of standalone and J2EE setup. 

Method:
Execute the test case:
http://10.192.37.242:8080/cfusion/manual/coldfusion/tags/page-processing/cfcache/caching_enhancements/diskpersistent/fragment.cfm - J2EE setup
http://10.192.26.249:8501/diskpersistent/object.cfm - Standalone setup

Result:
When diskpersistent="true" the objects/fragments cached are removed after a server restart. This should not happen, Even after server restart the cacheGet() function call should get the objects/templates from the disk.

Expected:

Workaround:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3161007

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

Previously we used to create new cache region and delete old one when setting cache properties. THis used to make disk persistence stay across server restarts. Now we don't create a new cache region when settings are applied. We only set properties on available cache region. These properties are not persisted across restart as per ehcache behavior. Now to make disk persistence retained across restart, workaround is to make diskpersistent=true in ehcach.xml for both default region or any custom region. Also when creation new region using cacheRegionNew(), poperties struct can have disk persistent as true and it will be retained across restart. (Comment added from ex-user id:sandeepp)
Comment by Adobe D.
19757 | April 10, 2012 03:55:29 AM GMT