We are using some (custom) caches that get cleared when data changes in Sitecore - it's written so that it only clears the cache when items from a certain template are published (we don't want this cache to be thrown away each time an editor publishes a small unrelated content change).
This works fine but.. the cache gets filled with data based upon an index query. So if the cache is cleared, and the index is not yet up-to-date before the first request that refills the cache, we are (might be) caching old data. So I started looking into events that we could use after index end.
I found an
indexing:end event, but as far as I could see the arguments are .. well, just the index name.
So my question is: is there a way to get a list of indexed items? (project is now on Sitecore 8.1 - but a solution on a higher version could also help)