{"action":"created","issue":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/2189","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/2189/labels{/name}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/2189/comments","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/2189/events","html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/2189","id":107252974,"number":2189,"title":"Spice wgha: Reduce cache time and add user location to query","user":{"login":"bigcurl","id":34068,"avatar_url":"https://avatars.githubusercontent.com/u/34068?v=3","gravatar_id":"","url":"https://api.github.com/users/bigcurl","html_url":"https://github.com/bigcurl","followers_url":"https://api.github.com/users/bigcurl/followers","following_url":"https://api.github.com/users/bigcurl/following{/other_user}","gists_url":"https://api.github.com/users/bigcurl/gists{/gist_id}","starred_url":"https://api.github.com/users/bigcurl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigcurl/subscriptions","organizations_url":"https://api.github.com/users/bigcurl/orgs","repos_url":"https://api.github.com/users/bigcurl/repos","events_url":"https://api.github.com/users/bigcurl/events{/privacy}","received_events_url":"https://api.github.com/users/bigcurl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/labels/Improvement","name":"Improvement","color":"d7e102"},{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/labels/Work%20In%20Progress","name":"Work In Progress","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"moollaza","id":873785,"avatar_url":"https://avatars.githubusercontent.com/u/873785?v=3","gravatar_id":"","url":"https://api.github.com/users/moollaza","html_url":"https://github.com/moollaza","followers_url":"https://api.github.com/users/moollaza/followers","following_url":"https://api.github.com/users/moollaza/following{/other_user}","gists_url":"https://api.github.com/users/moollaza/gists{/gist_id}","starred_url":"https://api.github.com/users/moollaza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moollaza/subscriptions","organizations_url":"https://api.github.com/users/moollaza/orgs","repos_url":"https://api.github.com/users/moollaza/repos","events_url":"https://api.github.com/users/moollaza/events{/privacy}","received_events_url":"https://api.github.com/users/moollaza/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-09-18T18:28:51Z","updated_at":"2015-12-20T07:43:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/2189","html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/2189","diff_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/2189.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/2189.patch"},"body":"Hi,\r\n\r\nThis pull request reduces the cache time from 60m to 5m to deliver fresher results for the spice wgha. \r\n\r\nBefore the spice would trigger for every request from the ''DE\" region. Now only fires when there is a useful city in the query including the users location. This saves some cpu cycles as the same match is done in the API. Tests have been updated accordingly.\r\n\r\nRegards\r\nSamuel"},"comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/comments/166080310","html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/2189#issuecomment-166080310","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/2189","id":166080310,"user":{"login":"bigcurl","id":34068,"avatar_url":"https://avatars.githubusercontent.com/u/34068?v=3","gravatar_id":"","url":"https://api.github.com/users/bigcurl","html_url":"https://github.com/bigcurl","followers_url":"https://api.github.com/users/bigcurl/followers","following_url":"https://api.github.com/users/bigcurl/following{/other_user}","gists_url":"https://api.github.com/users/bigcurl/gists{/gist_id}","starred_url":"https://api.github.com/users/bigcurl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigcurl/subscriptions","organizations_url":"https://api.github.com/users/bigcurl/orgs","repos_url":"https://api.github.com/users/bigcurl/repos","events_url":"https://api.github.com/users/bigcurl/events{/privacy}","received_events_url":"https://api.github.com/users/bigcurl/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T07:43:47Z","updated_at":"2015-12-20T07:43:47Z","body":"Hi @moollaza,\r\n\r\nchanged everything back: \r\n* will only trigger for request from DE\r\n* cities regex is created outside of handler\r\n\r\nPlease have a look at the changes so far and I wish you a merry christmas\r\n\r\n"}}