Hi there
I'm just hacking around in my mediawiki setup and try to do some kind of "smart" include. Means I'm having a namespace where the articles ("events") can be saved in "YYY-MM-DD_title"-format and a {{tag}}-include (coded in Parser.php) that automatically shows the titles of "today's" events.
Now the problem is, that the browser seems to cache the results. So if I create an event with today's date in the appropriate namespace, and put a {{tag}}-include on the sandbox-page it shows the entry (that's ok so far).
Now the problem is, that if I create a second event, the sandbox still shows only one event and: - If I do an "edit" on the sandbox page, the 2nd event appears. - It also appears when I clean the browser-cache and reload the page. - Doing a "hard-refresh" with shift-reload won't show the 2nd entry. - All other caching mechanisms are deactivated.
Unfortunately I don't recognize the HTML-tag for this caching-stuff - the browser I'm using is firefox so maybe this caching has something to do with the browsers default settings.
Someone knows a solution for my problem which will only deactivate the browser's caching on the pages using that include? Some kind of additional header informations?
Regards Joel
Joel Wiesmann wrote:
Now the problem is, that if I create a second event, the sandbox still shows only one event and:
- If I do an "edit" on the sandbox page, the 2nd event appears.
- It also appears when I clean the browser-cache and reload the page.
- Doing a "hard-refresh" with shift-reload won't show the 2nd entry.
- All other caching mechanisms are deactivated.
The rendered HTML of the page is kept in the parser cache. If you're not using memcached, parser-cache data is stored in blobs in the 'objectcache' table.
Either manually purge affected pages with action=purge, or manually purge the objectcache table (or just the affected pages using the cache's delete method), or disable the parser cache.
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org