Make workItemCount() smarter for htmlCacheUpdate/refreshLinks