Included file doesnt update (solution: new keyword 'nocache')

Jump to: navigation, search

At the very end of the module, you could add these lines, which disables page caching when it finds "nocache" keyword as in <include ... nocache />. This will disable the cache for pages that use the include tag.

function ef_include_render( $input, $argv, $parser ) {
    ...
    # http://www.mediawiki.org/wiki/Extensions_FAQ#How_do_I_disable_caching_for_pages_using_my_extension.3F
    if ( !empty( $argv['nocache'] ) ) {
        $parser->disableCache();
    }
 
    return $output;
}

Such an option will be part of a new version of the extension. Another possibility is to install MagicNoCache and to add the magic word to your page, or to install one of the alternatives mentioned on bottom of that page.

--Wikinaut 06:42, 24 May 2011 (UTC)10:58, 11 December 2011
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox