From 01f9908a0f929bc2c5f1fd3a6785b1099b7d74d1 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Wed, 10 Dec 2008 23:15:50 +0000 Subject: [PATCH] Configure extension: With DB handler, defer wfConfigureSetup() to a new hook, SetupAfterCache, which, as the name implies, is executed in Setup.php, after caches are initialised. This avoids some weird issues with Configure and maintenance scripts. --- includes/Setup.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/Setup.php b/includes/Setup.php index db66162f4f..859ad008b8 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -209,6 +209,10 @@ wfDebug( 'Main cache: ' . get_class( $wgMemc ) . "\nParser cache: " . get_class( $parserMemc ) . "\n" ); wfProfileOut( $fname.'-memcached' ); + +## Most of the config is out, some might want to run hooks here. +wfRunHooks( 'SetupAfterCache' ); + wfProfileIn( $fname.'-SetupSession' ); # Set default shared prefix -- 2.20.1