Creating and scheduling the InvalidateSearchCache job
The InvalidateSearchCache job is used for generating cache invalidation events in the live environment, based on the search index related updates from the authoring environment.
About this task
It is recommended to configure this scheduler job to start on one of the live WC servers after
stagingprop and indexprop have been performed. This scheduler command can be used to determine if cache
invalidation entries are necessary to be generated based on the current state of the Repeater
server. The command performs the check using the following mechanism.
- It queries the CACHEIVL database table to determine when the most recent search related invalidation operation was performed.
- Once the last invalidation time is determined, the command turns to the Repeater server and requests a list of IDs that have been updated since the last invalidation time.
- The command then takes this list of IDs (from both the Catalog Entry and Catalog Group indexes), and generates the corresponding cache invalidation tasks. The invalidation tasks are based on pre-configured cache invalidation templates in wc-component.xml file. For information on how to configure these templates, see Caching and invalidation in WebSphere Commerce search.
- The invalidation tasks are inserted into the CACHEIVL table.
- When the DynaCacheInvalidation scheduler task starts up at the next scheduled time interval, the CACHEIVL entries will be processed, and invalidate their cache fragments.
- The data object cache on the subordinate Search servers in the live environment will be refreshed at the same time.
Procedure
- Open the Administration Console and select Site on the page.
- Select . A list of jobs that are scheduled to be run is displayed.
-
Create the InvalidateSearchCache job.
Results
Your job is listed on the Scheduler Status Display page and runs at the specified start time.