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 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 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!