chore(cache): warnings

This code was originally authored by @mhevery in the
DirectiveInjector change.