I have returned with yet another cache question

First off, thanks for everyone that has helped me so far with this!

I am trying to get the caching working and with the help of this forum I
have gotten it working but I noticed I had to create a cache object in the
administration panel and select my default cache. While this works I am
going to be hosting on a container based platform so the ‘settings’ get
wiped each time so I need to set them in the application scope. I looked
around and did not see a section on how to create and set the cache object
via the application.cfc.

I did see one JIRA entry that was closed relating to what I think is the
same thing and it was supposedly added a month or two ago but I cant seem
to get it to work, when ever I add it to the application.cfc and re-deploy
it does not show up?

This is what I placed in

this.cache.object={
class=“org.lucee.extension.cache.eh.EHCache”
,storage=false
,custom={timeToLiveSeconds:86400
,maxelementsondisk:10000000
,distributed:“off”
,overflowtodisk:true
,maximumChunkSizeBytes:5000000
,timeToIdleSeconds:86400
,maxelementsinmemory:10000
,asynchronousReplicationIntervalMillis:1000
,diskpersistent:true
,memoryevictionpolicy:“LRU”}
};

This is just a base that I got off the commit.

Thanks!

This is a shameless bump in the hopes that somone can help answer the
question below.

Thanks!On Thursday, October 20, 2016 at 2:43:24 PM UTC-7, mk wrote:

First off, thanks for everyone that has helped me so far with this!

I am trying to get the caching working and with the help of this forum I
have gotten it working but I noticed I had to create a cache object in the
administration panel and select my default cache. While this works I am
going to be hosting on a container based platform so the ‘settings’ get
wiped each time so I need to set them in the application scope. I looked
around and did not see a section on how to create and set the cache object
via the application.cfc.

I did see one JIRA entry that was closed relating to what I think is the
same thing and it was supposedly added a month or two ago but I cant seem
to get it to work, when ever I add it to the application.cfc and re-deploy
it does not show up?

This is what I placed in

this.cache.object={
class=“org.lucee.extension.cache.eh.EHCache”
,storage=false
,custom={timeToLiveSeconds:86400
,maxelementsondisk:10000000
,distributed:“off”
,overflowtodisk:true
,maximumChunkSizeBytes:5000000
,timeToIdleSeconds:86400
,maxelementsinmemory:10000
,asynchronousReplicationIntervalMillis:1000
,diskpersistent:true
,memoryevictionpolicy:“LRU”}
};

This is just a base that I got off the commit.

Thanks!

Hi,

This might throw you back a few steps - but instead of using the caching mechanisms, you could store the stuff you want to persist in the Application scope.

Mark Drew wrote on 2016-10-24:> This is going to be in an upcoming release

Until then you could add it to your web config and deploy the
WEB-INF/lucee/*.cfm files

Mark Drew

  • Sent by typing with my thumbs.

On 24 Oct 2016, at 18:20, mk <@mk1 mailto:mk1 > wrote:

This is a shameless bump in the hopes that somone can help
answer the question below.

Thanks!

On Thursday, October 20, 2016 at 2:43:24 PM UTC-7, mk wrote:

  First off, thanks for everyone that has helped me so far

with this!

  I am trying to get the caching working and with the help

of this forum I have gotten it working but I noticed I had to create a
cache object in the administration panel and select my default cache.
While this works I am going to be hosting on a container based platform
so the ‘settings’ get wiped each time so I need to set them in the
application scope. I looked around and did not see a section on how to
create and set the cache object via the application.cfc.

  I did see one JIRA entry that was closed relating to

what I think is the same thing and it was supposedly added a month or
two ago but I cant seem to get it to work, when ever I add it to the
application.cfc and re-deploy it does not show up?

  This is what I placed in

  this.cache.object={ 		class="org.lucee.extension.cache.eh.EHCache"
  ,storage=false 		,custom={timeToLiveSeconds:86400
  ,maxelementsondisk:10000000 		,distributed:"off"
  ,overflowtodisk:true 		,maximumChunkSizeBytes:5000000
  ,timeToIdleSeconds:86400 		,maxelementsinmemory:10000
  ,asynchronousReplicationIntervalMillis:1000 		,diskpersistent:true
  ,memoryevictionpolicy:"LRU"} 		};

  This is just a base that I got off the commit.

  Thanks!

– Get 10% off of the regular price for this years CFCamp in Munich,
Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp.
189€ instead of 210€. Visit
https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp — You
received this message because you are subscribed to the Google Groups
“Lucee” group. To unsubscribe from this group and stop receiving emails
from it, send an email to lucee+unsubscribe@googlegroups.com
mailto:lucee+unsubscribe@googlegroups.com . To post to this group,
send email to lucee@googlegroups.com mailto:lucee@googlegroups.com .
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/0aa42556-fd5a-4f8d-aaa6-9e2a3092
e288%40googlegroups.com
<https://groups.google.com/d/msgid/lucee/0aa42556-fd5a-4f8d-aaa6-9e2a309
2e288%40googlegroups.com?utm_medium=email&utm_source=footer> . For more
options, visit https://groups.google.com/d/optout.