CFQUERY's CACHEDAFTER should cache queries run after specified time. For 
instance queries set with CACHEDAFTER timestamp {ts '2012-10-05 07:00:00'} 
should be served from cache indefinitely after that time. When the 
CACHEDAFTER is updated, the old cache item should be discarded and new used.

Currently cfQUERY.java:277 defines:

expireTime     = getDynamic(_Session, "CACHEDAFTER").getLong() - 
> System.currentTimeMillis();
>

Submitted this as issue 
493<http://code.google.com/p/openbluedragon/issues/detail?id=493>as I believe 
this is incorrect. This implements a "cached until" 
functionality. "Cached after" should compare CACHEDAFTER to now(), and if 
now()>CACHEDAFTER, use a cache with a key derived from CACHEDAFTER. That 
way the cache is valid as long as the CACHEDAFTER stays the same.

Or am I missing something?

  Jari

-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

Reply via email to