Lyle,
For this sort of thing, best to submit an enhancement request.
That said, a few days ago I was experimenting with using query caching in
ACF 11 and found it much too buggy to rely on. I was trying to set the
cacheId to be able to programmatically clear the cache, but simply couldn’t
get it to work. I wound up implementing it by using cachePut() and
cacheGet(), which worked perfectly from the get go. Here’s some code to
explain:
var qOpenWorkPeriods = cacheGet(
“sal-findOpenPayableWorkPeriodHoursInDateRange”);
if ( isNull( qOpenWorkPeriods ) ) {
var qOpenWorkPeriods = findOpenPayableWorkPeriodHoursInDateRange(
arguments.companyId,
arguments.startDate, arguments.endDate );
cachePut(“sal-findOpenPayableWorkPeriodHoursInDateRange”, qOpenWorkPeriods,
createTimespan(0,0,0,30));
}
To me, it is much more straightforward to use the cache functions for
caching, and they work. You’ll find these cache methods also implemented in
Lucee, and I’d suggest doing it this way. In both ACF and Lucee,
CacheRemove() will take either a list or array of id’s.
In ACF, the cacheId’s for queries are buried in an automatic region or
something, and no matter what I tried, setting a custom region, using dot
notation to try and drill down to the cacheId, using the cacheId without
the region, hunting for them using getAllCacheIds, cursing at the screen
… nothing worked. I may simply be an idiot missing something obvious, but
I will never try to use a cacheId on a query again in ACF.
Aria Media Sagl
+41 (0)76 303 4477 cell
skype: ariamediaOn Sat, Jul 9, 2016 at 4:57 PM, Lyle Karstensen <@Lyle_Karstensen> wrote:
ANYONE??? Is anyone out there?
On Monday, June 27, 2016 at 9:30:32 PM UTC-7, Lyle Karstensen wrote:
In looking at the CF 2016 version I noticed that cfquery has the ability
to specify a cacheid in there query tag. This allows you to pass an array
of id’s for clearing that cache by those id’s. I created my own udf for
lucee using mongodb as my query caching with this functionality but would
prefer to no longer support my own udf and use the built in functionality.
Is there a plan to bring lucee cfquery up to compatibility with CF? I
believe this cacheid has been in the code for a year or two.
https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-p-q/cfquery.html
–
Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…
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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/936e77c3-6860-4faf-98f0-455716c8773a%40googlegroups.com
https://groups.google.com/d/msgid/lucee/936e77c3-6860-4faf-98f0-455716c8773a%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.