{"action":"created","issue":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/1647","labels_url":"https://api.github.com/repos/torchbox/wagtail/issues/1647/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/wagtail/issues/1647/comments","events_url":"https://api.github.com/repos/torchbox/wagtail/issues/1647/events","html_url":"https://github.com/torchbox/wagtail/issues/1647","id":103617394,"number":1647,"title":"Support PUSHing content into front-end cache on edit","user":{"login":"ftarnell","id":185952,"avatar_url":"https://avatars.githubusercontent.com/u/185952?v=3","gravatar_id":"","url":"https://api.github.com/users/ftarnell","html_url":"https://github.com/ftarnell","followers_url":"https://api.github.com/users/ftarnell/followers","following_url":"https://api.github.com/users/ftarnell/following{/other_user}","gists_url":"https://api.github.com/users/ftarnell/gists{/gist_id}","starred_url":"https://api.github.com/users/ftarnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftarnell/subscriptions","organizations_url":"https://api.github.com/users/ftarnell/orgs","repos_url":"https://api.github.com/users/ftarnell/repos","events_url":"https://api.github.com/users/ftarnell/events{/privacy}","received_events_url":"https://api.github.com/users/ftarnell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-27T23:43:59Z","updated_at":"2015-08-27T23:52:00Z","closed_at":null,"body":"Wagtail already supports front-end cache purging, but this requires a three-request cycle to fetch updated content: `POST` to the backend to edit the page; `PURGE` (from Wagtail) to remove the cached content, and another `GET` to the backend to retrieve and cache the new content.\r\n\r\nThis overhead could be removed by allowing Wagtail to `PUSH` content directly into the cache when the page is edited:\r\n\r\n```\r\nPUSH https://example.com/my-page HTTP/1.1\r\nContent-Type: text/html;charset=UTF-8\r\nContent-Length: 1234\r\n\r\n<!DOCTYPE html>\r\n...\r\n```\r\n\r\nSince the page content and related models will already be loaded at this point, this should reduce the overhead of the cache clear when a page is edited."},"comment":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/comments/135586417","html_url":"https://github.com/torchbox/wagtail/issues/1647#issuecomment-135586417","issue_url":"https://api.github.com/repos/torchbox/wagtail/issues/1647","id":135586417,"user":{"login":"ftarnell","id":185952,"avatar_url":"https://avatars.githubusercontent.com/u/185952?v=3","gravatar_id":"","url":"https://api.github.com/users/ftarnell","html_url":"https://github.com/ftarnell","followers_url":"https://api.github.com/users/ftarnell/followers","following_url":"https://api.github.com/users/ftarnell/following{/other_user}","gists_url":"https://api.github.com/users/ftarnell/gists{/gist_id}","starred_url":"https://api.github.com/users/ftarnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftarnell/subscriptions","organizations_url":"https://api.github.com/users/ftarnell/orgs","repos_url":"https://api.github.com/users/ftarnell/repos","events_url":"https://api.github.com/users/ftarnell/events{/privacy}","received_events_url":"https://api.github.com/users/ftarnell/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T23:52:00Z","updated_at":"2015-08-27T23:52:00Z","body":"NB: This would be a direct benefit to our hosting clients, although I haven't done any measurements or estimates regarding the actual performance benefit from doing this."}}