Lucee admin notes that you can add cache settings to the Application.cfc
after creation of a cache store. After deleting the original (due to
running in Docker after container restart), I’m getting an error that a
default cache needs to be assigned when starting my app and cacheGet being
called.
Is there a reason something like the following doesn’t create a cache and
mark it as default if there is no cache created in the GUI?
this.cache.connections.selectorCache = {
class: 'org.lucee.extension.cache.eh.EHCache'
, bundleName: 'ehcache.extension'
, bundleVersion: '2.10.0.17'
, storage: true
, custom:
{“bootstrapAsynchronously”:“true”,“replicatePuts”:“true”,“automatic_hostName”:“”,“bootstrapType”:“on”,“maxelementsinmemory”:“10000”,“manual_rmiUrls”:“”,“distributed”:“off”,“automatic_multicastGroupAddress”:“230.0.0.1”,“memoryevictionpolicy”:“LRU”,“replicatePutsViaCopy”:“true”,“timeToIdleSeconds”:“86400”,“maximumChunkSizeBytes”:“5000000”,“automatic_multicastGroupPort”:“4446”,“listener_socketTimeoutMillis”:“120000”,“timeToLiveSeconds”:“86400”,“diskpersistent”:“true”,“manual_addional”:“”,“replicateRemovals”:“true”,“replicateUpdatesViaCopy”:“true”,“automatic_addional”:“”,“overflowtodisk”:“true”,“replicateAsynchronously”:“true”,“maxelementsondisk”:“10000000”,“listener_remoteObjectPort”:“”,“asynchronousReplicationIntervalMillis”:“1000”,“listener_hostName”:“”,“replicateUpdates”:“true”,“manual_hostName”:“”,“automatic_timeToLive”:“unrestricted”,“listener_port”:“”}
, default: ‘object’
};