{"action":"closed","number":17,"pull_request":{"url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/pulls/17","id":43698982,"html_url":"https://github.com/EugeneKey/QNA_Thinknetica/pull/17","diff_url":"https://github.com/EugeneKey/QNA_Thinknetica/pull/17.diff","patch_url":"https://github.com/EugeneKey/QNA_Thinknetica/pull/17.patch","issue_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/issues/17","number":17,"state":"closed","locked":false,"title":"Task 22","user":{"login":"EugeneKey","id":8057694,"avatar_url":"https://avatars.githubusercontent.com/u/8057694?v=3","gravatar_id":"","url":"https://api.github.com/users/EugeneKey","html_url":"https://github.com/EugeneKey","followers_url":"https://api.github.com/users/EugeneKey/followers","following_url":"https://api.github.com/users/EugeneKey/following{/other_user}","gists_url":"https://api.github.com/users/EugeneKey/gists{/gist_id}","starred_url":"https://api.github.com/users/EugeneKey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugeneKey/subscriptions","organizations_url":"https://api.github.com/users/EugeneKey/orgs","repos_url":"https://api.github.com/users/EugeneKey/repos","events_url":"https://api.github.com/users/EugeneKey/events{/privacy}","received_events_url":"https://api.github.com/users/EugeneKey/received_events","type":"User","site_admin":false},"body":"В проекте сделал для незалогиненых пользователей свой кеш, для залогиненых свой, для админов кеш не создается.\r\nПроблема в том, что для всех залогиненых пользователей будет один кеш и соотвественно элементы типа редактирования вопроса-ответа будут одинаковые, что не правильно.\r\nЯ почитал, что в таких случаях, либо эти элементы для разных пользователей подставляют нужные через js, либо делают фрагментарное кеширование с непопаданием этих элементов в кеш.\r\n\r\nВ первом случае, через js мне непонятно как осуществляется проверка авторизации, если здесь у нас применяется cancan, то в js нужно будет писать какой-то свой аналогичный функционал или как это обычно делается?\r\n\r\nВо втором случае, если использовать кеширование типа матрешки, то как его сделать фрагментарным? Ведь родительский кеш будет включать все содержимое дочерних элементов, где уже нельзя исключить какой-либо участок кода из кеша? А если не делать матрешку и кешировать каждый элемент по отдельности, то это менее производительно в плане отклика приложения (у меня в development режиме показало такие цифры, без кеша 500-600мс, кеш матрешкой 150-200мс, кеш фрагментами 1200-1300мс), хотя в продакшене при больших нагрузках все-равно конечно нагрузка на SQL сервер будет снижена.","created_at":"2015-08-29T18:03:49Z","updated_at":"2015-10-10T17:30:36Z","closed_at":"2015-10-10T17:30:36Z","merged_at":"2015-10-10T17:30:36Z","merge_commit_sha":"b3614c6616afa523f2ce6bf15a28de6b3a6b7959","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/pulls/17/commits","review_comments_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/pulls/17/comments","review_comment_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/issues/17/comments","statuses_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/statuses/40cc09ceeaa01745ed5f60055a5eaf56bc8a8e7b","head":{"label":"EugeneKey:task_22","ref":"task_22","sha":"40cc09ceeaa01745ed5f60055a5eaf56bc8a8e7b","user":{"login":"EugeneKey","id":8057694,"avatar_url":"https://avatars.githubusercontent.com/u/8057694?v=3","gravatar_id":"","url":"https://api.github.com/users/EugeneKey","html_url":"https://github.com/EugeneKey","followers_url":"https://api.github.com/users/EugeneKey/followers","following_url":"https://api.github.com/users/EugeneKey/following{/other_user}","gists_url":"https://api.github.com/users/EugeneKey/gists{/gist_id}","starred_url":"https://api.github.com/users/EugeneKey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugeneKey/subscriptions","organizations_url":"https://api.github.com/users/EugeneKey/orgs","repos_url":"https://api.github.com/users/EugeneKey/repos","events_url":"https://api.github.com/users/EugeneKey/events{/privacy}","received_events_url":"https://api.github.com/users/EugeneKey/received_events","type":"User","site_admin":false},"repo":{"id":36624204,"name":"QNA_Thinknetica","full_name":"EugeneKey/QNA_Thinknetica","owner":{"login":"EugeneKey","id":8057694,"avatar_url":"https://avatars.githubusercontent.com/u/8057694?v=3","gravatar_id":"","url":"https://api.github.com/users/EugeneKey","html_url":"https://github.com/EugeneKey","followers_url":"https://api.github.com/users/EugeneKey/followers","following_url":"https://api.github.com/users/EugeneKey/following{/other_user}","gists_url":"https://api.github.com/users/EugeneKey/gists{/gist_id}","starred_url":"https://api.github.com/users/EugeneKey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugeneKey/subscriptions","organizations_url":"https://api.github.com/users/EugeneKey/orgs","repos_url":"https://api.github.com/users/EugeneKey/repos","events_url":"https://api.github.com/users/EugeneKey/events{/privacy}","received_events_url":"https://api.github.com/users/EugeneKey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EugeneKey/QNA_Thinknetica","description":"","fork":false,"url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica","forks_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/forks","keys_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/teams","hooks_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/hooks","issue_events_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/issues/events{/number}","events_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/events","assignees_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/assignees{/user}","branches_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/branches{/branch}","tags_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/tags","blobs_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/git/refs{/sha}","trees_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/statuses/{sha}","languages_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/languages","stargazers_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/stargazers","contributors_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/contributors","subscribers_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/subscribers","subscription_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/subscription","commits_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/commits{/sha}","git_commits_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/git/commits{/sha}","comments_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/comments{/number}","issue_comment_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/issues/comments{/number}","contents_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/contents/{+path}","compare_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/merges","archive_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/downloads","issues_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/issues{/number}","pulls_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/pulls{/number}","milestones_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/milestones{/number}","notifications_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/labels{/name}","releases_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/releases{/id}","created_at":"2015-05-31T22:06:18Z","updated_at":"2015-07-27T05:31:30Z","pushed_at":"2015-10-10T17:30:35Z","git_url":"git://github.com/EugeneKey/QNA_Thinknetica.git","ssh_url":"git@github.com:EugeneKey/QNA_Thinknetica.git","clone_url":"https://github.com/EugeneKey/QNA_Thinknetica.git","svn_url":"https://github.com/EugeneKey/QNA_Thinknetica","homepage":null,"size":1852,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"EugeneKey:master","ref":"master","sha":"a2826f956ecf858f71a0c0dab68a4d75ad78de9b","user":{"login":"EugeneKey","id":8057694,"avatar_url":"https://avatars.githubusercontent.com/u/8057694?v=3","gravatar_id":"","url":"https://api.github.com/users/EugeneKey","html_url":"https://github.com/EugeneKey","followers_url":"https://api.github.com/users/EugeneKey/followers","following_url":"https://api.github.com/users/EugeneKey/following{/other_user}","gists_url":"https://api.github.com/users/EugeneKey/gists{/gist_id}","starred_url":"https://api.github.com/users/EugeneKey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugeneKey/subscriptions","organizations_url":"https://api.github.com/users/EugeneKey/orgs","repos_url":"https://api.github.com/users/EugeneKey/repos","events_url":"https://api.github.com/users/EugeneKey/events{/privacy}","received_events_url":"https://api.github.com/users/EugeneKey/received_events","type":"User","site_admin":false},"repo":{"id":36624204,"name":"QNA_Thinknetica","full_name":"EugeneKey/QNA_Thinknetica","owner":{"login":"EugeneKey","id":8057694,"avatar_url":"https://avatars.githubusercontent.com/u/8057694?v=3","gravatar_id":"","url":"https://api.github.com/users/EugeneKey","html_url":"https://github.com/EugeneKey","followers_url":"https://api.github.com/users/EugeneKey/followers","following_url":"https://api.github.com/users/EugeneKey/following{/other_user}","gists_url":"https://api.github.com/users/EugeneKey/gists{/gist_id}","starred_url":"https://api.github.com/users/EugeneKey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugeneKey/subscriptions","organizations_url":"https://api.github.com/users/EugeneKey/orgs","repos_url":"https://api.github.com/users/EugeneKey/repos","events_url":"https://api.github.com/users/EugeneKey/events{/privacy}","received_events_url":"https://api.github.com/users/EugeneKey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EugeneKey/QNA_Thinknetica","description":"","fork":false,"url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica","forks_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/forks","keys_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/teams","hooks_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/hooks","issue_events_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/issues/events{/number}","events_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/events","assignees_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/assignees{/user}","branches_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/branches{/branch}","tags_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/tags","blobs_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/git/refs{/sha}","trees_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/statuses/{sha}","languages_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/languages","stargazers_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/stargazers","contributors_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/contributors","subscribers_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/subscribers","subscription_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/subscription","commits_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/commits{/sha}","git_commits_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/git/commits{/sha}","comments_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/comments{/number}","issue_comment_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/issues/comments{/number}","contents_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/contents/{+path}","compare_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/merges","archive_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/downloads","issues_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/issues{/number}","pulls_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/pulls{/number}","milestones_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/milestones{/number}","notifications_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/labels{/name}","releases_url":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/releases{/id}","created_at":"2015-05-31T22:06:18Z","updated_at":"2015-07-27T05:31:30Z","pushed_at":"2015-10-10T17:30:35Z","git_url":"git://github.com/EugeneKey/QNA_Thinknetica.git","ssh_url":"git@github.com:EugeneKey/QNA_Thinknetica.git","clone_url":"https://github.com/EugeneKey/QNA_Thinknetica.git","svn_url":"https://github.com/EugeneKey/QNA_Thinknetica","homepage":null,"size":1852,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/pulls/17"},"html":{"href":"https://github.com/EugeneKey/QNA_Thinknetica/pull/17"},"issue":{"href":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/issues/17"},"comments":{"href":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/EugeneKey/QNA_Thinknetica/statuses/40cc09ceeaa01745ed5f60055a5eaf56bc8a8e7b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"EugeneKey","id":8057694,"avatar_url":"https://avatars.githubusercontent.com/u/8057694?v=3","gravatar_id":"","url":"https://api.github.com/users/EugeneKey","html_url":"https://github.com/EugeneKey","followers_url":"https://api.github.com/users/EugeneKey/followers","following_url":"https://api.github.com/users/EugeneKey/following{/other_user}","gists_url":"https://api.github.com/users/EugeneKey/gists{/gist_id}","starred_url":"https://api.github.com/users/EugeneKey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugeneKey/subscriptions","organizations_url":"https://api.github.com/users/EugeneKey/orgs","repos_url":"https://api.github.com/users/EugeneKey/repos","events_url":"https://api.github.com/users/EugeneKey/events{/privacy}","received_events_url":"https://api.github.com/users/EugeneKey/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"commits":1,"additions":69,"deletions":31,"changed_files":14}}