#4580 solved cache issue and permission check