From 1413ed911f74c3cd2ba07f5e5c270375931620cc Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 8 Mar 2011 16:06:30 -0800 Subject: [PATCH] Hackaround for http caching problem on poll pages; the notice doesn't change, but the results do, so don't use the notice's last-modifeid time as a caching epoch. --- plugins/Poll/showpoll.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/plugins/Poll/showpoll.php b/plugins/Poll/showpoll.php index f5002701a2..21ac7647c0 100644 --- a/plugins/Poll/showpoll.php +++ b/plugins/Poll/showpoll.php @@ -108,4 +108,21 @@ class ShowPollAction extends ShownoticeAction $this->poll->question); } + /** + * @fixme combine the notice time with poll update time + */ + function lastModified() + { + return Action::lastModified(); + } + + + /** + * @fixme combine the notice time with poll update time + */ + function etag() + { + return Action::etag(); + } + }