{"action":"opened","number":380,"pull_request":{"url":"https://api.github.com/repos/CTFd/CTFd/pulls/380","id":139951110,"html_url":"https://github.com/CTFd/CTFd/pull/380","diff_url":"https://github.com/CTFd/CTFd/pull/380.diff","patch_url":"https://github.com/CTFd/CTFd/pull/380.patch","issue_url":"https://api.github.com/repos/CTFd/CTFd/issues/380","number":380,"state":"open","locked":false,"title":"Cache pages","user":{"login":"ColdHeat","id":166333,"avatar_url":"https://avatars3.githubusercontent.com/u/166333?v=4","gravatar_id":"","url":"https://api.github.com/users/ColdHeat","html_url":"https://github.com/ColdHeat","followers_url":"https://api.github.com/users/ColdHeat/followers","following_url":"https://api.github.com/users/ColdHeat/following{/other_user}","gists_url":"https://api.github.com/users/ColdHeat/gists{/gist_id}","starred_url":"https://api.github.com/users/ColdHeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColdHeat/subscriptions","organizations_url":"https://api.github.com/users/ColdHeat/orgs","repos_url":"https://api.github.com/users/ColdHeat/repos","events_url":"https://api.github.com/users/ColdHeat/events{/privacy}","received_events_url":"https://api.github.com/users/ColdHeat/received_events","type":"User","site_admin":false},"body":"Cache pages so that the database doesn't get hit as often. This is useful especially with many users hitting the index page. \r\n\r\nAlso create the `get_page` function so that we don't inadvertently cache some user data. Only cache the actual page in the database. ","created_at":"2017-09-08T04:01:26Z","updated_at":"2017-09-08T04:01:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/CTFd/CTFd/pulls/380/commits","review_comments_url":"https://api.github.com/repos/CTFd/CTFd/pulls/380/comments","review_comment_url":"https://api.github.com/repos/CTFd/CTFd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CTFd/CTFd/issues/380/comments","statuses_url":"https://api.github.com/repos/CTFd/CTFd/statuses/ea44cfbaf857523c54146bd645108f214bf734eb","head":{"label":"CTFd:cache_pages","ref":"cache_pages","sha":"ea44cfbaf857523c54146bd645108f214bf734eb","user":{"login":"CTFd","id":18561578,"avatar_url":"https://avatars0.githubusercontent.com/u/18561578?v=4","gravatar_id":"","url":"https://api.github.com/users/CTFd","html_url":"https://github.com/CTFd","followers_url":"https://api.github.com/users/CTFd/followers","following_url":"https://api.github.com/users/CTFd/following{/other_user}","gists_url":"https://api.github.com/users/CTFd/gists{/gist_id}","starred_url":"https://api.github.com/users/CTFd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTFd/subscriptions","organizations_url":"https://api.github.com/users/CTFd/orgs","repos_url":"https://api.github.com/users/CTFd/repos","events_url":"https://api.github.com/users/CTFd/events{/privacy}","received_events_url":"https://api.github.com/users/CTFd/received_events","type":"Organization","site_admin":false},"repo":{"id":28681142,"name":"CTFd","full_name":"CTFd/CTFd","owner":{"login":"CTFd","id":18561578,"avatar_url":"https://avatars0.githubusercontent.com/u/18561578?v=4","gravatar_id":"","url":"https://api.github.com/users/CTFd","html_url":"https://github.com/CTFd","followers_url":"https://api.github.com/users/CTFd/followers","following_url":"https://api.github.com/users/CTFd/following{/other_user}","gists_url":"https://api.github.com/users/CTFd/gists{/gist_id}","starred_url":"https://api.github.com/users/CTFd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTFd/subscriptions","organizations_url":"https://api.github.com/users/CTFd/orgs","repos_url":"https://api.github.com/users/CTFd/repos","events_url":"https://api.github.com/users/CTFd/events{/privacy}","received_events_url":"https://api.github.com/users/CTFd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CTFd/CTFd","description":"CTFs as you need them","fork":false,"url":"https://api.github.com/repos/CTFd/CTFd","forks_url":"https://api.github.com/repos/CTFd/CTFd/forks","keys_url":"https://api.github.com/repos/CTFd/CTFd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CTFd/CTFd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CTFd/CTFd/teams","hooks_url":"https://api.github.com/repos/CTFd/CTFd/hooks","issue_events_url":"https://api.github.com/repos/CTFd/CTFd/issues/events{/number}","events_url":"https://api.github.com/repos/CTFd/CTFd/events","assignees_url":"https://api.github.com/repos/CTFd/CTFd/assignees{/user}","branches_url":"https://api.github.com/repos/CTFd/CTFd/branches{/branch}","tags_url":"https://api.github.com/repos/CTFd/CTFd/tags","blobs_url":"https://api.github.com/repos/CTFd/CTFd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CTFd/CTFd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CTFd/CTFd/git/refs{/sha}","trees_url":"https://api.github.com/repos/CTFd/CTFd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CTFd/CTFd/statuses/{sha}","languages_url":"https://api.github.com/repos/CTFd/CTFd/languages","stargazers_url":"https://api.github.com/repos/CTFd/CTFd/stargazers","contributors_url":"https://api.github.com/repos/CTFd/CTFd/contributors","subscribers_url":"https://api.github.com/repos/CTFd/CTFd/subscribers","subscription_url":"https://api.github.com/repos/CTFd/CTFd/subscription","commits_url":"https://api.github.com/repos/CTFd/CTFd/commits{/sha}","git_commits_url":"https://api.github.com/repos/CTFd/CTFd/git/commits{/sha}","comments_url":"https://api.github.com/repos/CTFd/CTFd/comments{/number}","issue_comment_url":"https://api.github.com/repos/CTFd/CTFd/issues/comments{/number}","contents_url":"https://api.github.com/repos/CTFd/CTFd/contents/{+path}","compare_url":"https://api.github.com/repos/CTFd/CTFd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CTFd/CTFd/merges","archive_url":"https://api.github.com/repos/CTFd/CTFd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CTFd/CTFd/downloads","issues_url":"https://api.github.com/repos/CTFd/CTFd/issues{/number}","pulls_url":"https://api.github.com/repos/CTFd/CTFd/pulls{/number}","milestones_url":"https://api.github.com/repos/CTFd/CTFd/milestones{/number}","notifications_url":"https://api.github.com/repos/CTFd/CTFd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CTFd/CTFd/labels{/name}","releases_url":"https://api.github.com/repos/CTFd/CTFd/releases{/id}","deployments_url":"https://api.github.com/repos/CTFd/CTFd/deployments","created_at":"2015-01-01T05:36:55Z","updated_at":"2017-09-07T06:52:46Z","pushed_at":"2017-09-08T03:55:30Z","git_url":"git://github.com/CTFd/CTFd.git","ssh_url":"git@github.com:CTFd/CTFd.git","clone_url":"https://github.com/CTFd/CTFd.git","svn_url":"https://github.com/CTFd/CTFd","homepage":"https://ctfd.io","size":3895,"stargazers_count":791,"watchers_count":791,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":296,"mirror_url":null,"open_issues_count":55,"forks":296,"open_issues":55,"watchers":791,"default_branch":"master"}},"base":{"label":"CTFd:master","ref":"master","sha":"2facb0ca8cc6482bfc99992e0fe63cb271de40a3","user":{"login":"CTFd","id":18561578,"avatar_url":"https://avatars0.githubusercontent.com/u/18561578?v=4","gravatar_id":"","url":"https://api.github.com/users/CTFd","html_url":"https://github.com/CTFd","followers_url":"https://api.github.com/users/CTFd/followers","following_url":"https://api.github.com/users/CTFd/following{/other_user}","gists_url":"https://api.github.com/users/CTFd/gists{/gist_id}","starred_url":"https://api.github.com/users/CTFd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTFd/subscriptions","organizations_url":"https://api.github.com/users/CTFd/orgs","repos_url":"https://api.github.com/users/CTFd/repos","events_url":"https://api.github.com/users/CTFd/events{/privacy}","received_events_url":"https://api.github.com/users/CTFd/received_events","type":"Organization","site_admin":false},"repo":{"id":28681142,"name":"CTFd","full_name":"CTFd/CTFd","owner":{"login":"CTFd","id":18561578,"avatar_url":"https://avatars0.githubusercontent.com/u/18561578?v=4","gravatar_id":"","url":"https://api.github.com/users/CTFd","html_url":"https://github.com/CTFd","followers_url":"https://api.github.com/users/CTFd/followers","following_url":"https://api.github.com/users/CTFd/following{/other_user}","gists_url":"https://api.github.com/users/CTFd/gists{/gist_id}","starred_url":"https://api.github.com/users/CTFd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTFd/subscriptions","organizations_url":"https://api.github.com/users/CTFd/orgs","repos_url":"https://api.github.com/users/CTFd/repos","events_url":"https://api.github.com/users/CTFd/events{/privacy}","received_events_url":"https://api.github.com/users/CTFd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CTFd/CTFd","description":"CTFs as you need them","fork":false,"url":"https://api.github.com/repos/CTFd/CTFd","forks_url":"https://api.github.com/repos/CTFd/CTFd/forks","keys_url":"https://api.github.com/repos/CTFd/CTFd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CTFd/CTFd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CTFd/CTFd/teams","hooks_url":"https://api.github.com/repos/CTFd/CTFd/hooks","issue_events_url":"https://api.github.com/repos/CTFd/CTFd/issues/events{/number}","events_url":"https://api.github.com/repos/CTFd/CTFd/events","assignees_url":"https://api.github.com/repos/CTFd/CTFd/assignees{/user}","branches_url":"https://api.github.com/repos/CTFd/CTFd/branches{/branch}","tags_url":"https://api.github.com/repos/CTFd/CTFd/tags","blobs_url":"https://api.github.com/repos/CTFd/CTFd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CTFd/CTFd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CTFd/CTFd/git/refs{/sha}","trees_url":"https://api.github.com/repos/CTFd/CTFd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CTFd/CTFd/statuses/{sha}","languages_url":"https://api.github.com/repos/CTFd/CTFd/languages","stargazers_url":"https://api.github.com/repos/CTFd/CTFd/stargazers","contributors_url":"https://api.github.com/repos/CTFd/CTFd/contributors","subscribers_url":"https://api.github.com/repos/CTFd/CTFd/subscribers","subscription_url":"https://api.github.com/repos/CTFd/CTFd/subscription","commits_url":"https://api.github.com/repos/CTFd/CTFd/commits{/sha}","git_commits_url":"https://api.github.com/repos/CTFd/CTFd/git/commits{/sha}","comments_url":"https://api.github.com/repos/CTFd/CTFd/comments{/number}","issue_comment_url":"https://api.github.com/repos/CTFd/CTFd/issues/comments{/number}","contents_url":"https://api.github.com/repos/CTFd/CTFd/contents/{+path}","compare_url":"https://api.github.com/repos/CTFd/CTFd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CTFd/CTFd/merges","archive_url":"https://api.github.com/repos/CTFd/CTFd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CTFd/CTFd/downloads","issues_url":"https://api.github.com/repos/CTFd/CTFd/issues{/number}","pulls_url":"https://api.github.com/repos/CTFd/CTFd/pulls{/number}","milestones_url":"https://api.github.com/repos/CTFd/CTFd/milestones{/number}","notifications_url":"https://api.github.com/repos/CTFd/CTFd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CTFd/CTFd/labels{/name}","releases_url":"https://api.github.com/repos/CTFd/CTFd/releases{/id}","deployments_url":"https://api.github.com/repos/CTFd/CTFd/deployments","created_at":"2015-01-01T05:36:55Z","updated_at":"2017-09-07T06:52:46Z","pushed_at":"2017-09-08T03:55:30Z","git_url":"git://github.com/CTFd/CTFd.git","ssh_url":"git@github.com:CTFd/CTFd.git","clone_url":"https://github.com/CTFd/CTFd.git","svn_url":"https://github.com/CTFd/CTFd","homepage":"https://ctfd.io","size":3895,"stargazers_count":791,"watchers_count":791,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":296,"mirror_url":null,"open_issues_count":55,"forks":296,"open_issues":55,"watchers":791,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CTFd/CTFd/pulls/380"},"html":{"href":"https://github.com/CTFd/CTFd/pull/380"},"issue":{"href":"https://api.github.com/repos/CTFd/CTFd/issues/380"},"comments":{"href":"https://api.github.com/repos/CTFd/CTFd/issues/380/comments"},"review_comments":{"href":"https://api.github.com/repos/CTFd/CTFd/pulls/380/comments"},"review_comment":{"href":"https://api.github.com/repos/CTFd/CTFd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CTFd/CTFd/pulls/380/commits"},"statuses":{"href":"https://api.github.com/repos/CTFd/CTFd/statuses/ea44cfbaf857523c54146bd645108f214bf734eb"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":14,"deletions":1,"changed_files":3}}
{"actor":{"display_login":"ColdHeat"}}