File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
dist-persist/wbstack/src/Settings Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ RUN set -eux; \
99
99
a2enconf mediawiki
100
100
101
101
ARG INSTALL_PROFILING_DEPS=0
102
+ ENV MW_ENABLE_PROFILING_HEADER=${INSTALL_PROFILING_DEPS}
102
103
COPY install_profiling.sh /install_profiling.sh
103
104
RUN if [ "$INSTALL_PROFILING_DEPS" = "1" ] ; then bash /install_profiling.sh ; else echo "skipping profiling dependencies ..." ; fi
104
105
Original file line number Diff line number Diff line change 46
46
47
47
// profiling
48
48
// requires docker image to be built with dependencies
49
- if ( isset ( $ _SERVER ['HTTP_X_WBSTACK_MW_PROFILING ' ] ) ) {
49
+ if ( getenv ( ' MW_ENABLE_PROFILING_HEADER ' ) === ' 1 ' && isset ( $ _SERVER ['HTTP_X_WBSTACK_MW_PROFILING ' ] ) ) {
50
50
$ wgProfiler ['class ' ] = 'ProfilerXhprof ' ;
51
51
$ wgProfiler ['output ' ] = [ 'ProfilerOutputText ' , 'ProfilerOutputDump ' ];
52
52
$ wgProfiler ['outputDir ' ] = "/tmp/ " ;
You can’t perform that action at this time.
0 commit comments