{"action":"closed","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/3532","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/3532/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/3532/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/3532/events","html_url":"https://github.com/CartoDB/cartodb/issues/3532","id":73596670,"number":3532,"title":"fix backbone cache now caching empty responses","user":{"login":"javisantana","id":30147,"avatar_url":"https://avatars.githubusercontent.com/u/30147?v=3","gravatar_id":"","url":"https://api.github.com/users/javisantana","html_url":"https://github.com/javisantana","followers_url":"https://api.github.com/users/javisantana/followers","following_url":"https://api.github.com/users/javisantana/following{/other_user}","gists_url":"https://api.github.com/users/javisantana/gists{/gist_id}","starred_url":"https://api.github.com/users/javisantana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javisantana/subscriptions","organizations_url":"https://api.github.com/users/javisantana/orgs","repos_url":"https://api.github.com/users/javisantana/repos","events_url":"https://api.github.com/users/javisantana/events{/privacy}","received_events_url":"https://api.github.com/users/javisantana/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"viddo","id":978461,"avatar_url":"https://avatars.githubusercontent.com/u/978461?v=3","gravatar_id":"","url":"https://api.github.com/users/viddo","html_url":"https://github.com/viddo","followers_url":"https://api.github.com/users/viddo/followers","following_url":"https://api.github.com/users/viddo/following{/other_user}","gists_url":"https://api.github.com/users/viddo/gists{/gist_id}","starred_url":"https://api.github.com/users/viddo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viddo/subscriptions","organizations_url":"https://api.github.com/users/viddo/orgs","repos_url":"https://api.github.com/users/viddo/repos","events_url":"https://api.github.com/users/viddo/events{/privacy}","received_events_url":"https://api.github.com/users/viddo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CartoDB/cartodb/milestones/38","html_url":"https://github.com/CartoDB/cartodb/milestones/Navacerrada","labels_url":"https://api.github.com/repos/CartoDB/cartodb/milestones/38/labels","id":1063998,"number":38,"title":"Navacerrada","description":"- [x] Medusa API (@rochoa)\r\n- [ ] New modals (@vikingo, @xavijam)\r\n- [ ] Design Re-legends/embeds (@saleiva)\r\n- [ ] GMaps fixes (@rambo, @xavijam)\r\n- [ ] Dashboard cache (@rambo)","creator":{"login":"saleiva","id":132149,"avatar_url":"https://avatars.githubusercontent.com/u/132149?v=3","gravatar_id":"","url":"https://api.github.com/users/saleiva","html_url":"https://github.com/saleiva","followers_url":"https://api.github.com/users/saleiva/followers","following_url":"https://api.github.com/users/saleiva/following{/other_user}","gists_url":"https://api.github.com/users/saleiva/gists{/gist_id}","starred_url":"https://api.github.com/users/saleiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saleiva/subscriptions","organizations_url":"https://api.github.com/users/saleiva/orgs","repos_url":"https://api.github.com/users/saleiva/repos","events_url":"https://api.github.com/users/saleiva/events{/privacy}","received_events_url":"https://api.github.com/users/saleiva/received_events","type":"User","site_admin":false},"open_issues":60,"closed_issues":62,"state":"open","created_at":"2015-04-12T19:55:20Z","updated_at":"2015-05-07T16:45:31Z","due_on":"2015-05-12T22:00:00Z","closed_at":null},"comments":1,"created_at":"2015-05-06T12:04:50Z","updated_at":"2015-05-07T16:45:31Z","closed_at":"2015-05-07T16:45:31Z","body":"Right now the cache caches empty responses, that does not make much sense and breaks some new dashboard onboarding.\r\n\r\nIn order to tests the issue:\r\n- enable cached_dashboard feature flag\r\n- create new user and go to the dashboard\r\n- go to data library (it enters in a infinite loop)\r\n\r\nThis is actually a dashboard problem and the main ticket is not fix this bug but it shows that caching empty lists ``[]`` or objects ``{}`` does not make much sense\r\n\r\nto fix the problem we should check here:\r\nhttps://github.com/CartoDB/cartodb/blob/master/lib/assets/javascripts/cartodb/app.js#L175\r\n\r\ncc @viddo @javierarce @alonsogarciapablo "}}