Title:
Ehcache with CFQuery: not responsive and stops caching after Query Cache Size reached
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Peter Schulz / Peter Schulz (Peter Schulz)
Created: 08/11/2015
Components: Caching
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final / CF11 Update7,CF10 Update18
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win 2008 Server R2
Vote Count: 1
Related Bugs:
CF-4074050 - Similar to
We have troubles with Ehcache and CFQuery caching. We are using https://wikidocs.adobe.com/wiki/display/coldfusionen/Optimizing+ColdFusion+applications as reference.
In Test #1 without using internal query cache, we have timeouts after maximum "Query Cache Size" value 250 is reached.
In Test #2 with using internal query cache, after the maximum "Query Cache Size" is reached our queries will no longer be cached.
Use attachment ehcache.zip to reproduction
---------------------------------------------------------------------------------------
Test in Browser #1: USEINTERNALQUERYCACHE = FALSE
---------------------------------------------------------------------------------------
Open URL: /internal_false/?cache=1 (CACHED=false)
Refresh URL: /internal_false/?cache=1 (CACHED=true)
Open URL: /internal_false/?cache=2 (CACHED=false)
RefreshURL: /internal_false/?cache=2 (TIMEOUT)
Open URL: /internal_false/?cache=3 (CACHED=false)
Refresh URL: /internal_false/?cache=3 (TIMEOUT)
Open URL: /internal_false/?cache=4 (CACHED=false)
Refresh URL: /internal_false/?cache=4 (TIMEOUT)
Show DATABASE - Query Cache Status: /internal_false/monitor.png
Click CLEAR & KILL to test again
---------------------------------------------------------------------------------------
Test in Browser #2: USEINTERNALQUERYCACHE = TRUE
---------------------------------------------------------------------------------------
Open URL: /internal_ true/?cache=1 (CACHED=false)
Refresh URL: /internal_ true/?cache=1 (CACHED=true)
Open URL: /internal_ true/?cache=2 (CACHED=false)
Refresh URL: /internal_ true/?cache=2 (CACHED=true)
Open URL: /internal_ true/?cache=3 (CACHED=false)
Refresh URL: /internal_ true/?cache=3 (CACHED=false)
Open URL: /internal_ true/?cache=4 (CACHED=false)
Refresh URL: /internal_ true/?cache=4 (CACHED=false)
Click CLEAR & KILL to test again
Show DATABASE - Query Cache Status: /internal_true/monitor.png
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4034570
External Customer Info:
External Company:
External Customer Name: Peter
External Customer Email:
External Test Config: Patch level: Coldfusion 10 Updater 16
Coldfusion Server Settings
---------------------------------------
Query Cache Size = 250
Use Internal Cache = false
Attachments:
- August 11, 2015 00:00:00: 1_ehcache.zip
Comments: