{"action":"created","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/7198","labels_url":"https://api.github.com/repos/piwik/piwik/issues/7198/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/7198/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/7198/events","html_url":"https://github.com/piwik/piwik/issues/7198","id":57613370,"number":7198,"title":"\"Action\" caching","user":{"login":"ThaDafinser","id":533017,"avatar_url":"https://avatars.githubusercontent.com/u/533017?v=3","gravatar_id":"","url":"https://api.github.com/users/ThaDafinser","html_url":"https://github.com/ThaDafinser","followers_url":"https://api.github.com/users/ThaDafinser/followers","following_url":"https://api.github.com/users/ThaDafinser/following{/other_user}","gists_url":"https://api.github.com/users/ThaDafinser/gists{/gist_id}","starred_url":"https://api.github.com/users/ThaDafinser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThaDafinser/subscriptions","organizations_url":"https://api.github.com/users/ThaDafinser/orgs","repos_url":"https://api.github.com/users/ThaDafinser/repos","events_url":"https://api.github.com/users/ThaDafinser/events{/privacy}","received_events_url":"https://api.github.com/users/ThaDafinser/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-13T15:40:37Z","updated_at":"2015-02-15T21:34:54Z","closed_at":"2015-02-15T21:34:54Z","body":"As a follow up to #7104 to gain even more GUI performance, i think it would be good to cache reports and other pages if possible.\r\n\r\nAll reports, which does not process data from the current day would/should be save to cache.\r\n\r\nHow to cache it? I think the easiest way would be a complete response cache.\r\n-> take the complete url with all variables and generate a cacheId\r\n-> save the response to cache\r\n\r\nIf a new request comes in, generate again the cacheId and check if a valid cache is around.\r\n-> when yes return it\r\n-> when no -> go to the normal process\r\n\r\nSaving the cache could happen in the FrontController: https://github.com/piwik/piwik/blob/master/core/FrontController.php#L96\r\n\r\nCheck for the cache could even happen before...e.g. in the index.php or bootstrap.php\r\n\r\nSome thoughts:\r\n- maybe the parameters are too different all the time, that nearly no cache item will be hit?\r\n- Cache check needs also time and if the miss rate is high, the benefit is the opposite we want\r\n- Not possible to cache: \"live widgets\" and reports for the current day\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/piwik/piwik/issues/comments/74438335","html_url":"https://github.com/piwik/piwik/issues/7198#issuecomment-74438335","issue_url":"https://api.github.com/repos/piwik/piwik/issues/7198","id":74438335,"user":{"login":"mattab","id":466765,"avatar_url":"https://avatars.githubusercontent.com/u/466765?v=3","gravatar_id":"","url":"https://api.github.com/users/mattab","html_url":"https://github.com/mattab","followers_url":"https://api.github.com/users/mattab/followers","following_url":"https://api.github.com/users/mattab/following{/other_user}","gists_url":"https://api.github.com/users/mattab/gists{/gist_id}","starred_url":"https://api.github.com/users/mattab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattab/subscriptions","organizations_url":"https://api.github.com/users/mattab/orgs","repos_url":"https://api.github.com/users/mattab/repos","events_url":"https://api.github.com/users/mattab/events{/privacy}","received_events_url":"https://api.github.com/users/mattab/received_events","type":"User","site_admin":false},"created_at":"2015-02-15T21:34:54Z","updated_at":"2015-02-15T21:34:54Z","body":"Heya, can you post your thoughts in: #7143"}}