// Make sure the Cache is enabled before attempting to display events Cache dumps cacheStatus = application.ptCalendar.getEventCacheStatus(); cacheType = application.ptCalendar.getCacheType(); cacheDataSource = ""; cacheDSNExists = false; errorMsg = ""; eventsCacheQry = QueryNew('tmp'); dumpHTML = ""; renderCacheDumps = false; if ( StructKeyExists(request.params,"showCache") AND IsBoolean(request.params.showCache) ) renderCacheDumps = request.params.showCache; if ( cacheStatus AND cacheType EQ "database" ) { cacheDataSource = application.ptCalendar.getCacheDatasource(); cacheDSNExists = application.ptCalendar.verifyDSNExists(dataSource=cacheDataSource); if ( !cacheDSNExists ) { cacheStatus = false; errorMsg = "Error attempting to verify the Calendar Cache Datasource: #cacheDataSource#.
See CommonSpot/ADF Logs."; } }
#application.ptCalendar.calEventsCacheService.renderCalendarCacheStatusHTML(verboseOutputOverride=true)#


#errorMsg#



// Cache Status Info //application.ptCalendar.calEventsCacheService.renderCalendarCacheStatusHTML(verboseOutputOverride=true); if ( cacheStatus ) { // ptCalendarCache Variable Dump if ( renderCacheDumps ) application.ptCalendar.utils.doDump(application.ptCalendarCache,"application.ptCalendarCache",1); // Events Cache General Dump //eventsCacheQry = application.ptCalendar.calEventsCacheController.getEvents(); //WriteOutput('
Cached Event Records: #eventsCacheQry.RecordCount#
'); if ( cacheType EQ "memory" ) { // Events Cache Memory Dump eventsCacheQry = application.ptCalendar.calEventsCacheMemoryDAO.getEventsQuery(); if ( renderCacheDumps ) dumpHTML = application.ptCalendar.utils.doDump(eventsCacheQry,"eventsCacheMemory",1,1); } else if ( cacheType EQ "file" ) { // Events Cache File Dump eventsCacheQry = application.ptCalendar.calEventsCacheFileDAO.getEventsQuery(); if ( renderCacheDumps ) dumpHTML = application.ptCalendar.utils.doDump(eventsCacheQry,"eventsCacheFile",1,1); } else if ( cacheType EQ "database" ) { // Events Cache DB Table Dump eventsCacheQry = application.ptCalendar.calEventsCacheDatabaseDAO.getEventsQuery(); if ( renderCacheDumps ) dumpHTML = application.ptCalendar.utils.doDump(eventsCacheQry,"eventsCacheDB",1,1); } }
Cached Event Records: #eventsCacheQry.RecordCount#
#dumpHTML#