From: Brion Vibber Date: Wed, 9 Mar 2011 00:06:30 +0000 (-0800) Subject: Hackaround for http caching problem on poll pages; the notice doesn't change, but... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1413ed911f74c3cd2ba07f5e5c270375931620cc;p=quix0rs-gnu-social.git 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. --- 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(); + } + }