30 January 2009

Caching problem with MediaWiki Sidebar component

We've got an internal MediaWiki installed and are using it as our intranet. One issue we ran into: When we updated the wiki's sidebar, the changes weren't showing up. Why? Because the Sidebar is a PHP file all its own -- the wiki has caching capabilities and unless the page containing the sidebar was "touched" or changed, you wouldn't see the modifications to the sidebar.

One brute-force way to see the changes: Clear the browser cache and reload. A cleaner solution is to use this command while logged on as root:
touch localsettings.php

This page talks more about the MediaWiki file caching.

No comments: