Topic on Project:Support desk

Force MediaWiki to reload page

6
207.23.96.10 (talkcontribs)

I have the SecurePHP extension installed so I can run some PHP code, but when I load the page, it doesn't update the data from the last load. The only what I can get it to re-run the PHP code is to save page again. Is there a way I can get MediaWiki to do a full reload of the page with no caching. Assuming that is the issue?

207.23.96.10 (talkcontribs)

To disable caching add the following lines to your LocalSettings.php file:

    1. Disable all forms of MediaWiki caching

$wgMainCacheType = CACHE_NONE; $wgMessageCacheType = CACHE_NONE; $wgParserCacheType = CACHE_NONE; $wgCachePages = false;

Frozen Wind (talkcontribs)

No, no, no, disabling caching is a Very Bad Idea.

Instead, purge the page by adding ?action=purge at the end of the URL.

207.23.96.10 (talkcontribs)

That doesn't produce my wanted results. I can't get my users to always go to the purge URL, they just do to the normal URL.

Edit: Also, why is disabiling caching a bad idea. You don't know what my site is used for, or my resources. It is an internal wiki used by a team of 10 people...

74.117.212.38 (talkcontribs)

I also needed to have the cache off for a small private wiki and after not listening to those who said to NOT set them all as none or false, my extensions work and development is so much easier!

88.130.119.179 (talkcontribs)
  • Turning caches off is OK for development, but not for production use.
  • SecurePHP is really unsecure.

However, I guess you are grown-up so you are free to do as you like.

Reply to "Force MediaWiki to reload page"