On 05/07/05, thomas Armstrong tarmstrong@gmail.com wrote:
I'm modifying Mediawiki code to show some extra data, but they are not displayed because of cache feature of Mediawiki. In order to solve this, I must 'Edit > Preferences
Clear Cache' constantly on my browser, but I don't want my Wiki users to do this.
Is there any way to remove this feature?
I was going to suggest finding the option for disabling the cache in DefaultSettings.php, but if clearing your browser cache clears the problem, it's clearly not MediaWiki's internal caching features that are your problem in the first place.
What you need to do is track down where in the code the HTTP headers like If-Modified-Since, Expires, Cache-Control, etc are dealt with, and set it to tell the browser "never cache this page". Of course, this will increase the load on your server rather dramatically, but if it's a low-traffic site that may not be a problem.
By the way, you shouldn't have to clear your whole browser cache every time, you can usually hold down Shift or Control to "force refresh" the current page - see http://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache for instructions for common browsers.