{"action":"created","comment":{"url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/comments/49162696","id":49162696,"diff_hunk":"@@ -11,7 +11,13 @@\n \n   # Show full error reports and disable caching.\n   config.consider_all_requests_local       = true\n-  config.action_controller.perform_caching = false\n+\n+  # If you using memcached for all evironment\n+  # Then add these line to config/application.rb\n+  # 127.0.0.1 means: Memcached server was installed on same box\n+  config.perform_caching = true","path":"config/environments/development.rb","position":9,"original_position":9,"commit_id":"283f27a8bf69b50afe4295c39e40a0cdb76a46cc","original_commit_id":"283f27a8bf69b50afe4295c39e40a0cdb76a46cc","user":{"login":"mupty","id":14992508,"avatar_url":"https://avatars.githubusercontent.com/u/14992508?v=3","gravatar_id":"","url":"https://api.github.com/users/mupty","html_url":"https://github.com/mupty","followers_url":"https://api.github.com/users/mupty/followers","following_url":"https://api.github.com/users/mupty/following{/other_user}","gists_url":"https://api.github.com/users/mupty/gists{/gist_id}","starred_url":"https://api.github.com/users/mupty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mupty/subscriptions","organizations_url":"https://api.github.com/users/mupty/orgs","repos_url":"https://api.github.com/users/mupty/repos","events_url":"https://api.github.com/users/mupty/events{/privacy}","received_events_url":"https://api.github.com/users/mupty/received_events","type":"User","site_admin":false},"body":"Config to using memcached, of course.","created_at":"2016-01-08T06:55:57Z","updated_at":"2016-01-08T06:55:57Z","html_url":"https://github.com/mupty/ror_caches_action_with_crf_token/pull/1#discussion_r49162696","pull_request_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/comments/49162696"},"html":{"href":"https://github.com/mupty/ror_caches_action_with_crf_token/pull/1#discussion_r49162696"},"pull_request":{"href":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/1","id":55430040,"html_url":"https://github.com/mupty/ror_caches_action_with_crf_token/pull/1","diff_url":"https://github.com/mupty/ror_caches_action_with_crf_token/pull/1.diff","patch_url":"https://github.com/mupty/ror_caches_action_with_crf_token/pull/1.patch","issue_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/issues/1","number":1,"state":"open","locked":false,"title":"Sample code for refresh csrf token per request when using caches action","user":{"login":"mupty","id":14992508,"avatar_url":"https://avatars.githubusercontent.com/u/14992508?v=3","gravatar_id":"","url":"https://api.github.com/users/mupty","html_url":"https://github.com/mupty","followers_url":"https://api.github.com/users/mupty/followers","following_url":"https://api.github.com/users/mupty/following{/other_user}","gists_url":"https://api.github.com/users/mupty/gists{/gist_id}","starred_url":"https://api.github.com/users/mupty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mupty/subscriptions","organizations_url":"https://api.github.com/users/mupty/orgs","repos_url":"https://api.github.com/users/mupty/repos","events_url":"https://api.github.com/users/mupty/events{/privacy}","received_events_url":"https://api.github.com/users/mupty/received_events","type":"User","site_admin":false},"body":"Simple code to refresh csrf_token (authenticity_token) per request for action that using caches_action","created_at":"2016-01-08T06:47:00Z","updated_at":"2016-01-08T06:55:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4685b87d643c2f308b5f06de1418bf67eaebf5b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/issues/1/comments","statuses_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/statuses/283f27a8bf69b50afe4295c39e40a0cdb76a46cc","head":{"label":"mupty:SampleCodeRefreshCsrfTokenWhenCachesAction","ref":"SampleCodeRefreshCsrfTokenWhenCachesAction","sha":"283f27a8bf69b50afe4295c39e40a0cdb76a46cc","user":{"login":"mupty","id":14992508,"avatar_url":"https://avatars.githubusercontent.com/u/14992508?v=3","gravatar_id":"","url":"https://api.github.com/users/mupty","html_url":"https://github.com/mupty","followers_url":"https://api.github.com/users/mupty/followers","following_url":"https://api.github.com/users/mupty/following{/other_user}","gists_url":"https://api.github.com/users/mupty/gists{/gist_id}","starred_url":"https://api.github.com/users/mupty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mupty/subscriptions","organizations_url":"https://api.github.com/users/mupty/orgs","repos_url":"https://api.github.com/users/mupty/repos","events_url":"https://api.github.com/users/mupty/events{/privacy}","received_events_url":"https://api.github.com/users/mupty/received_events","type":"User","site_admin":false},"repo":{"id":49250457,"name":"ror_caches_action_with_crf_token","full_name":"mupty/ror_caches_action_with_crf_token","owner":{"login":"mupty","id":14992508,"avatar_url":"https://avatars.githubusercontent.com/u/14992508?v=3","gravatar_id":"","url":"https://api.github.com/users/mupty","html_url":"https://github.com/mupty","followers_url":"https://api.github.com/users/mupty/followers","following_url":"https://api.github.com/users/mupty/following{/other_user}","gists_url":"https://api.github.com/users/mupty/gists{/gist_id}","starred_url":"https://api.github.com/users/mupty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mupty/subscriptions","organizations_url":"https://api.github.com/users/mupty/orgs","repos_url":"https://api.github.com/users/mupty/repos","events_url":"https://api.github.com/users/mupty/events{/privacy}","received_events_url":"https://api.github.com/users/mupty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mupty/ror_caches_action_with_crf_token","description":"Ruby on Rails: Sample code for \"How to refresh csrf_token (authenticity_token) when using caches_action","fork":false,"url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token","forks_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/forks","keys_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/teams","hooks_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/hooks","issue_events_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/issues/events{/number}","events_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/events","assignees_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/assignees{/user}","branches_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/branches{/branch}","tags_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/tags","blobs_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/git/refs{/sha}","trees_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/statuses/{sha}","languages_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/languages","stargazers_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/stargazers","contributors_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/contributors","subscribers_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/subscribers","subscription_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/subscription","commits_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/commits{/sha}","git_commits_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/git/commits{/sha}","comments_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/comments{/number}","issue_comment_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/issues/comments{/number}","contents_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/contents/{+path}","compare_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/merges","archive_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/downloads","issues_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/issues{/number}","pulls_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls{/number}","milestones_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/milestones{/number}","notifications_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/labels{/name}","releases_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/releases{/id}","created_at":"2016-01-08T04:55:30Z","updated_at":"2016-01-08T05:04:34Z","pushed_at":"2016-01-08T06:48:03Z","git_url":"git://github.com/mupty/ror_caches_action_with_crf_token.git","ssh_url":"git@github.com:mupty/ror_caches_action_with_crf_token.git","clone_url":"https://github.com/mupty/ror_caches_action_with_crf_token.git","svn_url":"https://github.com/mupty/ror_caches_action_with_crf_token","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"mupty:master","ref":"master","sha":"ee63f2da638da25f5dae439b5d7bed3e6f74f18a","user":{"login":"mupty","id":14992508,"avatar_url":"https://avatars.githubusercontent.com/u/14992508?v=3","gravatar_id":"","url":"https://api.github.com/users/mupty","html_url":"https://github.com/mupty","followers_url":"https://api.github.com/users/mupty/followers","following_url":"https://api.github.com/users/mupty/following{/other_user}","gists_url":"https://api.github.com/users/mupty/gists{/gist_id}","starred_url":"https://api.github.com/users/mupty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mupty/subscriptions","organizations_url":"https://api.github.com/users/mupty/orgs","repos_url":"https://api.github.com/users/mupty/repos","events_url":"https://api.github.com/users/mupty/events{/privacy}","received_events_url":"https://api.github.com/users/mupty/received_events","type":"User","site_admin":false},"repo":{"id":49250457,"name":"ror_caches_action_with_crf_token","full_name":"mupty/ror_caches_action_with_crf_token","owner":{"login":"mupty","id":14992508,"avatar_url":"https://avatars.githubusercontent.com/u/14992508?v=3","gravatar_id":"","url":"https://api.github.com/users/mupty","html_url":"https://github.com/mupty","followers_url":"https://api.github.com/users/mupty/followers","following_url":"https://api.github.com/users/mupty/following{/other_user}","gists_url":"https://api.github.com/users/mupty/gists{/gist_id}","starred_url":"https://api.github.com/users/mupty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mupty/subscriptions","organizations_url":"https://api.github.com/users/mupty/orgs","repos_url":"https://api.github.com/users/mupty/repos","events_url":"https://api.github.com/users/mupty/events{/privacy}","received_events_url":"https://api.github.com/users/mupty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mupty/ror_caches_action_with_crf_token","description":"Ruby on Rails: Sample code for \"How to refresh csrf_token (authenticity_token) when using caches_action","fork":false,"url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token","forks_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/forks","keys_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/teams","hooks_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/hooks","issue_events_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/issues/events{/number}","events_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/events","assignees_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/assignees{/user}","branches_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/branches{/branch}","tags_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/tags","blobs_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/git/refs{/sha}","trees_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/statuses/{sha}","languages_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/languages","stargazers_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/stargazers","contributors_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/contributors","subscribers_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/subscribers","subscription_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/subscription","commits_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/commits{/sha}","git_commits_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/git/commits{/sha}","comments_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/comments{/number}","issue_comment_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/issues/comments{/number}","contents_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/contents/{+path}","compare_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/merges","archive_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/downloads","issues_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/issues{/number}","pulls_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls{/number}","milestones_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/milestones{/number}","notifications_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/labels{/name}","releases_url":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/releases{/id}","created_at":"2016-01-08T04:55:30Z","updated_at":"2016-01-08T05:04:34Z","pushed_at":"2016-01-08T06:48:03Z","git_url":"git://github.com/mupty/ror_caches_action_with_crf_token.git","ssh_url":"git@github.com:mupty/ror_caches_action_with_crf_token.git","clone_url":"https://github.com/mupty/ror_caches_action_with_crf_token.git","svn_url":"https://github.com/mupty/ror_caches_action_with_crf_token","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/1"},"html":{"href":"https://github.com/mupty/ror_caches_action_with_crf_token/pull/1"},"issue":{"href":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/issues/1"},"comments":{"href":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mupty/ror_caches_action_with_crf_token/statuses/283f27a8bf69b50afe4295c39e40a0cdb76a46cc"}}}}