fixed bug on caching and pathway workaround
Merge pull request #2768 from grisoni77/fix-cache

fixed bug on caching and pathway workaround