#525 Error handler needlessly sets Pragma: no-cache

PHP_error
closed
5
2012-10-11
2006-02-25
Matt Brown
No

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

Discussion

  • Matt Brown

    Matt Brown - 2006-02-25

    Only set no-cache headers when error output is generated

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks