Question about cache options

Hi everyone,

I am thinking about migrating from ACF to lucee and noticed that lucee does
not support the cache options ‘dependson’ and ‘querystring’ What is the
best way to do this with lucee?

My scenario is I have a JSON file that get generated, this is based off a
querystring, this element get cached and will stay cached unless something
is updated on the backend, this is where the ‘cacheKey’ is checked against
‘depedson’ and if its different then it expires the cache but with lucee I
see no option for something like this.

Thanks.

Well that socks lol. I am open to recoding it I’m just not sure what the best way would be.

Basically as stated when a user updates content we change the cache key for their accout, this would then use the depebdson tag to recache… how would I do that with lucee?

Is there a way to flush the cache when a user saves content but only for a specific Url/query string?

I looked at the storecache and the docs talk about and ID, would it be possible to generate an id, then tie that Id to a user, then when updating I tell it to clear cache using that ID?

Second, not sure if anyone from lucee team might now but is a cfcache port in the road map or will the limited functions be it?

Thanks.

Hi, in my experience the cfcache tag in Lucee is not usable as it doesn’t
match ACF, and what it does have is flaky. Maybe others have had better
luck. I had to implement my own template fragment caching with a custom tag
when porting from ACF to Lucee. I tried cfcache template caching on Lucee 5
and still doesn’t work right. I’d recommend implementing your own caching
mechanism with cachePut()/cacheGet(), function caching, or custom tags.
Unfortunately I don’t think you’ll be able to straight port the caching.On Thursday, October 6, 2016 at 3:52:17 PM UTC-4, mk wrote:

Hi everyone,

I am thinking about migrating from ACF to lucee and noticed that lucee
does not support the cache options ‘dependson’ and ‘querystring’ What is
the best way to do this with lucee?

My scenario is I have a JSON file that get generated, this is based off a
querystring, this element get cached and will stay cached unless something
is updated on the backend, this is where the ‘cacheKey’ is checked against
‘depedson’ and if its different then it expires the cache but with lucee I
see no option for something like this.

Thanks.