I picked up this procedure on my way:
How To Invoke the cache clear servlet automatically
You can schedule any topic with standard parameter types via the Process Control Manager
The actual topic class is glog.server.workflow.adhoc.ClearCaches. It takes the following arguments:
- cache = the name of the cache to clear. If unspecified, clears all caches.
- zone = the zone of the caches to clear. If unspecified, clears all zones.
- exactMatch = if true, cache is a single cache. Otherwise, it is a cache prefix.
- clearRating = if true, the action calls PerfTestActionSessionWrapper.clearAllBusinessCache s(), otherwise it just clears the low-level caches.
There are two ways to schedule this:
- Add a record to PROCESS_CONTROL_REQUEST where
- TOPIC_CLASS_NAME = glog.server.workflow.adhoc.ClearCaches
- TOPIC_PARAMETERS = -clearRating true
- NEXT_PROCESS_TIME = GMT time to run
You can also schedule it as a recurring process
- Use the expanded process control UI via: glog.webserver.processcontrol.ProcessServlet?userL evel=qa. This will show nearly all topics including Clear Caches. Scroll to the bottom of the topic list and you'll see the topic under Utility.
There's also a topic to reset rating engine caches, Reset Rate Engine Caches. This maps to glog.server.workflow.utility.ClearRECachesTopic. It's not a generic cache clearer, but may be what you want. It calls
- RatingEngine.clearRateEngineCaches();
- BaseOrderBundle.refresh();