FlushTag.java | Class | FlushTag flushes caches created with <cache>.
This tag provides programmatic control over when caches are flushed,
and can flush all caches at once.
Usage Examples:
<%@ taglib uri="oscache" prefix="cache" %>
<cache:flush scope="application" />
<cache:flush scope="session" key="foobar" />
Note: If no scope is provided (or scope is null), it will flush
all caches globally - use with care!
Flushing is done by setting an appropriate application level time,
which <cache> always looks at before retrieving the cache.
If this 'flush time' is > that cache's last update, it will refresh
the cache.
As such caches are not all 'flushed', they are all marked
to be refreshed at their next access. |