{"action":"created","comment":{"url":"https://api.github.com/repos/shoopio/shoop/pulls/comments/42116614","id":42116614,"diff_hunk":"@@ -136,3 +136,9 @@\n \n #: The submission URL for Shoop's telemetry (statistics) system\n SHOOP_TELEMETRY_URL = \"https://telemetry.shoop.io/collect/\"\n+\n+#: Default cache duration for various caches in seconds\n+SHOOP_DEFAULT_CACHE_DURATION = 60 * 30","path":"shoop/core/settings.py","position":6,"original_position":6,"commit_id":"ee8cf703493e568ed2ef291f1d8ad8c4b6c211b5","original_commit_id":"a958e5a81c0e50923e1d6b8cfc8f080728aa47ed","user":{"login":"akx","id":58669,"avatar_url":"https://avatars.githubusercontent.com/u/58669?v=3","gravatar_id":"","url":"https://api.github.com/users/akx","html_url":"https://github.com/akx","followers_url":"https://api.github.com/users/akx/followers","following_url":"https://api.github.com/users/akx/following{/other_user}","gists_url":"https://api.github.com/users/akx/gists{/gist_id}","starred_url":"https://api.github.com/users/akx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akx/subscriptions","organizations_url":"https://api.github.com/users/akx/orgs","repos_url":"https://api.github.com/users/akx/repos","events_url":"https://api.github.com/users/akx/events{/privacy}","received_events_url":"https://api.github.com/users/akx/received_events","type":"User","site_admin":false},"body":"Another point: I really don't want people to have to import `datetime` in their `settings` for this.","created_at":"2015-10-15T12:19:53Z","updated_at":"2015-10-15T12:19:53Z","html_url":"https://github.com/shoopio/shoop/pull/227#discussion_r42116614","pull_request_url":"https://api.github.com/repos/shoopio/shoop/pulls/227","_links":{"self":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/comments/42116614"},"html":{"href":"https://github.com/shoopio/shoop/pull/227#discussion_r42116614"},"pull_request":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/227"}}},"pull_request":{"url":"https://api.github.com/repos/shoopio/shoop/pulls/227","id":47768358,"html_url":"https://github.com/shoopio/shoop/pull/227","diff_url":"https://github.com/shoopio/shoop/pull/227.diff","patch_url":"https://github.com/shoopio/shoop/pull/227.patch","issue_url":"https://api.github.com/repos/shoopio/shoop/issues/227","number":227,"state":"open","locked":false,"title":"Add autoexpiring versioned cache API (SHOOP-1702)","user":{"login":"akx","id":58669,"avatar_url":"https://avatars.githubusercontent.com/u/58669?v=3","gravatar_id":"","url":"https://api.github.com/users/akx","html_url":"https://github.com/akx","followers_url":"https://api.github.com/users/akx/followers","following_url":"https://api.github.com/users/akx/following{/other_user}","gists_url":"https://api.github.com/users/akx/gists{/gist_id}","starred_url":"https://api.github.com/users/akx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akx/subscriptions","organizations_url":"https://api.github.com/users/akx/orgs","repos_url":"https://api.github.com/users/akx/repos","events_url":"https://api.github.com/users/akx/events{/privacy}","received_events_url":"https://api.github.com/users/akx/received_events","type":"User","site_admin":false},"body":"This is the versioned cache API as introduced in #62, rebased, extracted and slightly updated too.","created_at":"2015-10-15T10:23:36Z","updated_at":"2015-10-15T12:19:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"caaa889a68b1475333749d729712dc6af871768a","assignee":{"login":"suutari-ai","id":3531281,"avatar_url":"https://avatars.githubusercontent.com/u/3531281?v=3","gravatar_id":"","url":"https://api.github.com/users/suutari-ai","html_url":"https://github.com/suutari-ai","followers_url":"https://api.github.com/users/suutari-ai/followers","following_url":"https://api.github.com/users/suutari-ai/following{/other_user}","gists_url":"https://api.github.com/users/suutari-ai/gists{/gist_id}","starred_url":"https://api.github.com/users/suutari-ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suutari-ai/subscriptions","organizations_url":"https://api.github.com/users/suutari-ai/orgs","repos_url":"https://api.github.com/users/suutari-ai/repos","events_url":"https://api.github.com/users/suutari-ai/events{/privacy}","received_events_url":"https://api.github.com/users/suutari-ai/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/shoopio/shoop/pulls/227/commits","review_comments_url":"https://api.github.com/repos/shoopio/shoop/pulls/227/comments","review_comment_url":"https://api.github.com/repos/shoopio/shoop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shoopio/shoop/issues/227/comments","statuses_url":"https://api.github.com/repos/shoopio/shoop/statuses/ee8cf703493e568ed2ef291f1d8ad8c4b6c211b5","head":{"label":"akx:versioned-cache","ref":"versioned-cache","sha":"ee8cf703493e568ed2ef291f1d8ad8c4b6c211b5","user":{"login":"akx","id":58669,"avatar_url":"https://avatars.githubusercontent.com/u/58669?v=3","gravatar_id":"","url":"https://api.github.com/users/akx","html_url":"https://github.com/akx","followers_url":"https://api.github.com/users/akx/followers","following_url":"https://api.github.com/users/akx/following{/other_user}","gists_url":"https://api.github.com/users/akx/gists{/gist_id}","starred_url":"https://api.github.com/users/akx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akx/subscriptions","organizations_url":"https://api.github.com/users/akx/orgs","repos_url":"https://api.github.com/users/akx/repos","events_url":"https://api.github.com/users/akx/events{/privacy}","received_events_url":"https://api.github.com/users/akx/received_events","type":"User","site_admin":false},"repo":{"id":37119193,"name":"shoop","full_name":"akx/shoop","owner":{"login":"akx","id":58669,"avatar_url":"https://avatars.githubusercontent.com/u/58669?v=3","gravatar_id":"","url":"https://api.github.com/users/akx","html_url":"https://github.com/akx","followers_url":"https://api.github.com/users/akx/followers","following_url":"https://api.github.com/users/akx/following{/other_user}","gists_url":"https://api.github.com/users/akx/gists{/gist_id}","starred_url":"https://api.github.com/users/akx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akx/subscriptions","organizations_url":"https://api.github.com/users/akx/orgs","repos_url":"https://api.github.com/users/akx/repos","events_url":"https://api.github.com/users/akx/events{/privacy}","received_events_url":"https://api.github.com/users/akx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akx/shoop","description":"","fork":true,"url":"https://api.github.com/repos/akx/shoop","forks_url":"https://api.github.com/repos/akx/shoop/forks","keys_url":"https://api.github.com/repos/akx/shoop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akx/shoop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akx/shoop/teams","hooks_url":"https://api.github.com/repos/akx/shoop/hooks","issue_events_url":"https://api.github.com/repos/akx/shoop/issues/events{/number}","events_url":"https://api.github.com/repos/akx/shoop/events","assignees_url":"https://api.github.com/repos/akx/shoop/assignees{/user}","branches_url":"https://api.github.com/repos/akx/shoop/branches{/branch}","tags_url":"https://api.github.com/repos/akx/shoop/tags","blobs_url":"https://api.github.com/repos/akx/shoop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akx/shoop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akx/shoop/git/refs{/sha}","trees_url":"https://api.github.com/repos/akx/shoop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akx/shoop/statuses/{sha}","languages_url":"https://api.github.com/repos/akx/shoop/languages","stargazers_url":"https://api.github.com/repos/akx/shoop/stargazers","contributors_url":"https://api.github.com/repos/akx/shoop/contributors","subscribers_url":"https://api.github.com/repos/akx/shoop/subscribers","subscription_url":"https://api.github.com/repos/akx/shoop/subscription","commits_url":"https://api.github.com/repos/akx/shoop/commits{/sha}","git_commits_url":"https://api.github.com/repos/akx/shoop/git/commits{/sha}","comments_url":"https://api.github.com/repos/akx/shoop/comments{/number}","issue_comment_url":"https://api.github.com/repos/akx/shoop/issues/comments{/number}","contents_url":"https://api.github.com/repos/akx/shoop/contents/{+path}","compare_url":"https://api.github.com/repos/akx/shoop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akx/shoop/merges","archive_url":"https://api.github.com/repos/akx/shoop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akx/shoop/downloads","issues_url":"https://api.github.com/repos/akx/shoop/issues{/number}","pulls_url":"https://api.github.com/repos/akx/shoop/pulls{/number}","milestones_url":"https://api.github.com/repos/akx/shoop/milestones{/number}","notifications_url":"https://api.github.com/repos/akx/shoop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akx/shoop/labels{/name}","releases_url":"https://api.github.com/repos/akx/shoop/releases{/id}","created_at":"2015-06-09T08:11:10Z","updated_at":"2015-06-09T08:11:11Z","pushed_at":"2015-10-15T12:19:20Z","git_url":"git://github.com/akx/shoop.git","ssh_url":"git@github.com:akx/shoop.git","clone_url":"https://github.com/akx/shoop.git","svn_url":"https://github.com/akx/shoop","homepage":null,"size":4328,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"shoopio:master","ref":"master","sha":"541737f7091af77b24d413d1436c0ae36aa5cadc","user":{"login":"shoopio","id":12714852,"avatar_url":"https://avatars.githubusercontent.com/u/12714852?v=3","gravatar_id":"","url":"https://api.github.com/users/shoopio","html_url":"https://github.com/shoopio","followers_url":"https://api.github.com/users/shoopio/followers","following_url":"https://api.github.com/users/shoopio/following{/other_user}","gists_url":"https://api.github.com/users/shoopio/gists{/gist_id}","starred_url":"https://api.github.com/users/shoopio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoopio/subscriptions","organizations_url":"https://api.github.com/users/shoopio/orgs","repos_url":"https://api.github.com/users/shoopio/repos","events_url":"https://api.github.com/users/shoopio/events{/privacy}","received_events_url":"https://api.github.com/users/shoopio/received_events","type":"Organization","site_admin":false},"repo":{"id":36803364,"name":"shoop","full_name":"shoopio/shoop","owner":{"login":"shoopio","id":12714852,"avatar_url":"https://avatars.githubusercontent.com/u/12714852?v=3","gravatar_id":"","url":"https://api.github.com/users/shoopio","html_url":"https://github.com/shoopio","followers_url":"https://api.github.com/users/shoopio/followers","following_url":"https://api.github.com/users/shoopio/following{/other_user}","gists_url":"https://api.github.com/users/shoopio/gists{/gist_id}","starred_url":"https://api.github.com/users/shoopio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoopio/subscriptions","organizations_url":"https://api.github.com/users/shoopio/orgs","repos_url":"https://api.github.com/users/shoopio/repos","events_url":"https://api.github.com/users/shoopio/events{/privacy}","received_events_url":"https://api.github.com/users/shoopio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shoopio/shoop","description":"E-Commerce Platform","fork":false,"url":"https://api.github.com/repos/shoopio/shoop","forks_url":"https://api.github.com/repos/shoopio/shoop/forks","keys_url":"https://api.github.com/repos/shoopio/shoop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shoopio/shoop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shoopio/shoop/teams","hooks_url":"https://api.github.com/repos/shoopio/shoop/hooks","issue_events_url":"https://api.github.com/repos/shoopio/shoop/issues/events{/number}","events_url":"https://api.github.com/repos/shoopio/shoop/events","assignees_url":"https://api.github.com/repos/shoopio/shoop/assignees{/user}","branches_url":"https://api.github.com/repos/shoopio/shoop/branches{/branch}","tags_url":"https://api.github.com/repos/shoopio/shoop/tags","blobs_url":"https://api.github.com/repos/shoopio/shoop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shoopio/shoop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shoopio/shoop/git/refs{/sha}","trees_url":"https://api.github.com/repos/shoopio/shoop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shoopio/shoop/statuses/{sha}","languages_url":"https://api.github.com/repos/shoopio/shoop/languages","stargazers_url":"https://api.github.com/repos/shoopio/shoop/stargazers","contributors_url":"https://api.github.com/repos/shoopio/shoop/contributors","subscribers_url":"https://api.github.com/repos/shoopio/shoop/subscribers","subscription_url":"https://api.github.com/repos/shoopio/shoop/subscription","commits_url":"https://api.github.com/repos/shoopio/shoop/commits{/sha}","git_commits_url":"https://api.github.com/repos/shoopio/shoop/git/commits{/sha}","comments_url":"https://api.github.com/repos/shoopio/shoop/comments{/number}","issue_comment_url":"https://api.github.com/repos/shoopio/shoop/issues/comments{/number}","contents_url":"https://api.github.com/repos/shoopio/shoop/contents/{+path}","compare_url":"https://api.github.com/repos/shoopio/shoop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shoopio/shoop/merges","archive_url":"https://api.github.com/repos/shoopio/shoop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shoopio/shoop/downloads","issues_url":"https://api.github.com/repos/shoopio/shoop/issues{/number}","pulls_url":"https://api.github.com/repos/shoopio/shoop/pulls{/number}","milestones_url":"https://api.github.com/repos/shoopio/shoop/milestones{/number}","notifications_url":"https://api.github.com/repos/shoopio/shoop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shoopio/shoop/labels{/name}","releases_url":"https://api.github.com/repos/shoopio/shoop/releases{/id}","created_at":"2015-06-03T12:53:21Z","updated_at":"2015-10-15T08:24:24Z","pushed_at":"2015-10-15T12:19:20Z","git_url":"git://github.com/shoopio/shoop.git","ssh_url":"git@github.com:shoopio/shoop.git","clone_url":"https://github.com/shoopio/shoop.git","svn_url":"https://github.com/shoopio/shoop","homepage":"https://shoop.io","size":8202,"stargazers_count":163,"watchers_count":163,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":11,"forks":50,"open_issues":11,"watchers":163,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/227"},"html":{"href":"https://github.com/shoopio/shoop/pull/227"},"issue":{"href":"https://api.github.com/repos/shoopio/shoop/issues/227"},"comments":{"href":"https://api.github.com/repos/shoopio/shoop/issues/227/comments"},"review_comments":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/227/comments"},"review_comment":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/227/commits"},"statuses":{"href":"https://api.github.com/repos/shoopio/shoop/statuses/ee8cf703493e568ed2ef291f1d8ad8c4b6c211b5"}}}}