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?
Topic on Project:Support desk
To disable caching add the following lines to your LocalSettings.php file:
- Disable all forms of MediaWiki caching
$wgMainCacheType = CACHE_NONE; $wgMessageCacheType = CACHE_NONE; $wgParserCacheType = CACHE_NONE; $wgCachePages = false;
No, no, no, disabling caching is a Very Bad Idea.
Instead, purge the page by adding ?action=purge at the end of the URL.
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...
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!
- 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.