{"action":"created","issue":{"url":"https://api.github.com/repos/pakyow/pakyow/issues/106","labels_url":"https://api.github.com/repos/pakyow/pakyow/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/pakyow/pakyow/issues/106/comments","events_url":"https://api.github.com/repos/pakyow/pakyow/issues/106/events","html_url":"https://github.com/pakyow/pakyow/issues/106","id":120093043,"number":106,"title":"Views composed with `presenter.view = presenter.compose_at(...)` are permanantly cached","user":{"login":"rjclardy","id":272702,"avatar_url":"https://avatars.githubusercontent.com/u/272702?v=3","gravatar_id":"","url":"https://api.github.com/users/rjclardy","html_url":"https://github.com/rjclardy","followers_url":"https://api.github.com/users/rjclardy/followers","following_url":"https://api.github.com/users/rjclardy/following{/other_user}","gists_url":"https://api.github.com/users/rjclardy/gists{/gist_id}","starred_url":"https://api.github.com/users/rjclardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjclardy/subscriptions","organizations_url":"https://api.github.com/users/rjclardy/orgs","repos_url":"https://api.github.com/users/rjclardy/repos","events_url":"https://api.github.com/users/rjclardy/events{/privacy}","received_events_url":"https://api.github.com/users/rjclardy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pakyow/pakyow/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"bryanp","id":18920,"avatar_url":"https://avatars.githubusercontent.com/u/18920?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanp","html_url":"https://github.com/bryanp","followers_url":"https://api.github.com/users/bryanp/followers","following_url":"https://api.github.com/users/bryanp/following{/other_user}","gists_url":"https://api.github.com/users/bryanp/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanp/subscriptions","organizations_url":"https://api.github.com/users/bryanp/orgs","repos_url":"https://api.github.com/users/bryanp/repos","events_url":"https://api.github.com/users/bryanp/events{/privacy}","received_events_url":"https://api.github.com/users/bryanp/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-03T04:41:02Z","updated_at":"2015-12-04T21:56:57Z","closed_at":null,"body":"I have a page with a form that gets composed like so:\r\n\r\n```ruby\r\n      presenter.view = presenter.compose_at(\r\n        'users/settings',\r\n        template: 'consumer'\r\n      )\r\n```\r\n\r\nIt displays the form data properly the first time it's loaded, but on subsequent loads it displays the page as it was at the time of that first load. I can alter the data in the database and reload the page but it just displays the original data again (even after logging out and back in as a different user). Restarting the server is the only way I've found to get it to re-compose the view instead of using the cached version.\r\n\r\nI'm not sure if the issue is a side-effect of using `presenter.view` or of using `presenter.compose_at`, but it works fine if I just set `presenter.path` instead. However, that doesn't work for cases where the template needs to be specified dynamically."},"comment":{"url":"https://api.github.com/repos/pakyow/pakyow/issues/comments/162092970","html_url":"https://github.com/pakyow/pakyow/issues/106#issuecomment-162092970","issue_url":"https://api.github.com/repos/pakyow/pakyow/issues/106","id":162092970,"user":{"login":"bryanp","id":18920,"avatar_url":"https://avatars.githubusercontent.com/u/18920?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanp","html_url":"https://github.com/bryanp","followers_url":"https://api.github.com/users/bryanp/followers","following_url":"https://api.github.com/users/bryanp/following{/other_user}","gists_url":"https://api.github.com/users/bryanp/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanp/subscriptions","organizations_url":"https://api.github.com/users/bryanp/orgs","repos_url":"https://api.github.com/users/bryanp/repos","events_url":"https://api.github.com/users/bryanp/events{/privacy}","received_events_url":"https://api.github.com/users/bryanp/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T21:56:57Z","updated_at":"2015-12-04T21:56:57Z","body":"@rjclardy So far I've been unable to reproduce in an isolated test case. You provide the code around composition, but not the data binding code. Can you provide a more complete example?\r\n\r\nAlso, is this in a development or production environment?"}}