[ phpwiki-Bugs-1438439 ] Error handler needlessly sets Pragma: no-cache

"SourceForge.net" <[email protected]> Fri, 24 Feb 2006 18:02:52 -0800
Newsgroups gmane.comp.web.wiki.phpwiki.bugs
Message-ID <[email protected]>
Bugs item #1438439, was opened at 2006-02-25 15:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106121&aid=1438439&group_id=6121

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: version 1.3.x (experimental)
Group: PHP error
Status: Open
Resolution: None
Priority: 5
Submitted By: Matt Brown (mattgbrown)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error handler needlessly sets Pragma: no-cache

Initial Comment:
The error handler sets Pragma: no-cache whenever it
handles an error, regardless of whether the error
actually results in an error message being displayed to
the user or not. 

Because there are several minor bugs in the PHPwiki
syntax (which the error handler appears to always
ignore) that cause errors on every page this makes
EVERY page in the wiki uncachable!

The attached patch modifies the error handler to only
set no-cache headers when an error is actually output
to the browser.

This patch can be found as r54 in the WLUG svn
repository at
http://svn.wlug.org.nz/viewcvs?root=wiki&rev=54&view=rev

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106121&aid=1438439&group_id=6121


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642