invalidSearchCache utility
The invalidSearchCache utility can be used from the command line to invalidate the contents of the specified cache.
For environments in which the search index is created in non-production, cache invalidation calls from the UpdateSearchIndex scheduled job do not make it to the production servers. The job scheduler provides a command, InvalidateSearchCache, that can be used to invalidate the cache. If you want to manually issue the command, use the invalidSearchCache command line script.
Each time the invalidSearchCache utility is run, it enters a time stamp into the CACHEIVL database table. This time stamp indicates when the last invalidation CACHEIVL entries were generated. The next time that the utility is run, it compares this time stamp against the last modification time of all indexed entries. Any index entry that was modified later than the time stamp has its cached version invalidated.

Parameter values
- instance
- The name of the WebSphere Commerce instance.
- server
- Hostname of the server that is running WebSphere Commerce.
- masterCatalogID
- The master catalog ID.
- userID
- User ID of the WebSphere Commerce Site Administrator. The publish job is run under the authority of this user.
- userpwd
- Password of the WebSphere Commerce Site Administrator user.
Optional parameters
- indexType
- The index type: CatalogEntry or CatalogGroup. Default is both.
- fullBuild
- True or false. Default value is false.
- method
- Method for invalidating the cache. Choices are 'database' or 'index.'
database - This is the default value. The invalidSearchCache utility uses TI_DELTA_CATENTRY/CATGROUP to generate invalidation entries in CACHEIVL table.
index - The invalidSearchCache utility generates invalidation entries based on the most recent changes to the Repeater.
Example
- WC_installdir/bin
WCDE_installdir\bin
invalidSearchCache.sh -instance myinstance -server myhost -masterCatalogId 10001 -indexType CatalogEntry