fix caching bug for bugherd api and make fewer request based on user being logged in.