MediaWiki caching works in many layers. There are a number of server side caches, apart from the caching in the client. (As you might have noticed, MW i notoriously slow, unless you implement at least some of the caching functionalities.)
First of all you will want to figure out which sitenotices are cached. As I'm sure you are aware, there is more than one place where you can set the sitenotice:
MediaWiki:Anonnotice
MediaWiki:Sitenotice
-
$wgSiteNotice
in LocalSettings.php
- Through a few different extensions
Do they all stay on the page for too long?
Secondly, you can try and figure out where your sitenotice is cached:
- Is there any difference if you are logged in/out? Some parts of the interface can be harder cached for anonymous users.
- Does the message disappear if you clear you browsers cache?
- Try and disable Varnish (or Squid), if you are using any of them.
- Temporarily disable $wgEnableParserCache to see what difference it makes.
- Set
$wgCachePages = false;
in your LocalSettings.php, to try and disallow client side caching