Add hook CacheHeadersAfterSet to permit override of cache headers later
authorAriel Glenn <ariel@users.mediawiki.org>
Fri, 6 Nov 2009 10:53:51 +0000 (10:53 +0000)
committerAriel Glenn <ariel@users.mediawiki.org>
Fri, 6 Nov 2009 10:53:51 +0000 (10:53 +0000)
includes/OutputPage.php

index d1f2adf..8591283 100644 (file)
@@ -1101,6 +1101,7 @@ class OutputPage {
                        $response->header( 'Cache-Control: no-cache, no-store, max-age=0, must-revalidate' );
                        $response->header( 'Pragma: no-cache' );
                }
+               wfRunHooks('CacheHeadersAfterSet', array( &$this ) );
        }
 
        /**