Add template dir to cache
Remove obsolete errors gathering method calls