troubleshoot applyCache