[Opensymphony-oscache] CacheEntry::needsRefresh
dres <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <24882814.1112718868936.JavaMail.os-j2ee@opensymphony01.contegix.com> |
This is the order as I interpret it: 1. A refresh period of 0 will always require a refresh. 2. The EntryRefreshPolicy is examined, if one exists. 3. The refresh period is used in the absence of a EntryRefreshPolicy. 4. The cron expression can force a refresh if none of the above has already. This seems correct to me. The refreshPeriod is only used if it is 0 or a policy has not been set. Are there problems with this approach? Changing this would be a big deal for compatibility. Which javadoc makes you think this should be different? --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=1283&messageID=4088#4088