{"action":"created","issue":{"url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/46","labels_url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/46/comments","events_url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/46/events","html_url":"https://github.com/moonpyk/mvcdonutcaching/issues/46","id":107480721,"number":46,"title":"excluding child action of a child action failes","user":{"login":"mahdi87gh","id":4113297,"avatar_url":"https://avatars.githubusercontent.com/u/4113297?v=3","gravatar_id":"","url":"https://api.github.com/users/mahdi87gh","html_url":"https://github.com/mahdi87gh","followers_url":"https://api.github.com/users/mahdi87gh/followers","following_url":"https://api.github.com/users/mahdi87gh/following{/other_user}","gists_url":"https://api.github.com/users/mahdi87gh/gists{/gist_id}","starred_url":"https://api.github.com/users/mahdi87gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahdi87gh/subscriptions","organizations_url":"https://api.github.com/users/mahdi87gh/orgs","repos_url":"https://api.github.com/users/mahdi87gh/repos","events_url":"https://api.github.com/users/mahdi87gh/events{/privacy}","received_events_url":"https://api.github.com/users/mahdi87gh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-21T10:05:00Z","updated_at":"2015-09-25T16:57:16Z","closed_at":null,"body":"Hi\r\nI have a child action for creating my footer which loads data from database. And I am loading it like this in my Layout.chtml\r\n\r\n @Html.Action(\"CreateFooter\", \"Home\", true)\r\n\r\nIn CreateFooter action I call another child action for displaying page visit status which shouldn't be cached and needs to display fresh data. So in my CreateFooter.chtml \r\n\r\n@Html.Action(\"GetStatus\", \"VisitCounter\", new { Address = \"PV-Home -> Index\" },true)\r\n\r\nBut things in my footer gets messed up. some part of footer which is right after this line of code, repeats before whole footer!! If i change it to this line \r\n\r\n@Html.Action(\"GetStatus\", \"VisitCounter\", new { Address = \"PV-Home -> Index\" })\r\n\r\nNothing gets messed up but the visit status data wo'nt be fresh anymore.\r\n\r\nIn Home controller , CreateFooter has dounut attribute\r\nIn VisitCounter controller , GetStatus has'nt dounut attribute\r\n\r\n\r\nPlease kindly help me."},"comment":{"url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/comments/143281089","html_url":"https://github.com/moonpyk/mvcdonutcaching/issues/46#issuecomment-143281089","issue_url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/46","id":143281089,"user":{"login":"migig","id":10752448,"avatar_url":"https://avatars.githubusercontent.com/u/10752448?v=3","gravatar_id":"","url":"https://api.github.com/users/migig","html_url":"https://github.com/migig","followers_url":"https://api.github.com/users/migig/followers","following_url":"https://api.github.com/users/migig/following{/other_user}","gists_url":"https://api.github.com/users/migig/gists{/gist_id}","starred_url":"https://api.github.com/users/migig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migig/subscriptions","organizations_url":"https://api.github.com/users/migig/orgs","repos_url":"https://api.github.com/users/migig/repos","events_url":"https://api.github.com/users/migig/events{/privacy}","received_events_url":"https://api.github.com/users/migig/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T16:57:16Z","updated_at":"2015-09-25T16:57:16Z","body":"@mahdi87gh From your description it sounds like what I posted is correct. You need to somehow check for `IsChildAction`, and return if that is the case, else you will get two calls to the child action. [See here](https://stackoverflow.com/a/8442605/3959480)."}}