{"action":"closed","issue":{"url":"https://api.github.com/repos/rails/rails/issues/19462","labels_url":"https://api.github.com/repos/rails/rails/issues/19462/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/19462/comments","events_url":"https://api.github.com/repos/rails/rails/issues/19462/events","html_url":"https://github.com/rails/rails/issues/19462","id":63568251,"number":19462,"title":"Rendering partial with layout does not generate cache digest for layout template","user":{"login":"matthooks","id":3667,"avatar_url":"https://avatars.githubusercontent.com/u/3667?v=3","gravatar_id":"","url":"https://api.github.com/users/matthooks","html_url":"https://github.com/matthooks","followers_url":"https://api.github.com/users/matthooks/followers","following_url":"https://api.github.com/users/matthooks/following{/other_user}","gists_url":"https://api.github.com/users/matthooks/gists{/gist_id}","starred_url":"https://api.github.com/users/matthooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthooks/subscriptions","organizations_url":"https://api.github.com/users/matthooks/orgs","repos_url":"https://api.github.com/users/matthooks/repos","events_url":"https://api.github.com/users/matthooks/events{/privacy}","received_events_url":"https://api.github.com/users/matthooks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-22T19:47:59Z","updated_at":"2015-03-22T19:52:40Z","closed_at":"2015-03-22T19:52:40Z","body":"The following code will generate a cache digest for `shared/inner` but not for `shared/outer`.\r\n\r\n```erb\r\n<% cache do %>\r\n  <%= render partial: \"shared/inner\", layout: \"shared/outer\" %>\r\n<% end %>\r\n```\r\n\r\nThe workaround is fairly simple:\r\n\r\n```erb\r\n<% cache do %>\r\n  <%# Template Dependency: shared/outer %>\r\n  <%= render partial: \"shared/inner\", layout: \"shared/outer\" %>\r\n<% end %>\r\n```\r\n\r\nHowever, this seems like something that could be supported out of the box. If someone could point me to the right place to put a failing test case, I'd be more than happy to submit a PR."}}