File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,19 @@ public function create(array $arguments)
127
127
}
128
128
}
129
129
130
+ // set cache profiler decorator if enabled
131
+ if (\Magento \Framework \Profiler::isEnabled ()) {
132
+ $ cacheFactoryArguments = $ diConfig ->getArguments ('Magento\Framework\App\Cache\Frontend\Factory ' );
133
+ $ cacheFactoryArguments ['decorators ' ][] = [
134
+ 'class ' => 'Magento\Framework\Cache\Frontend\Decorator\Profiler ' ,
135
+ 'parameters ' => ['backendPrefixes ' => ['Zend_Cache_Backend_ ' , 'Cm_Cache_Backend_ ' ]],
136
+ ];
137
+ $ cacheFactoryConfig = [
138
+ 'Magento\Framework\App\Cache\Frontend\Factory ' => ['arguments ' => $ cacheFactoryArguments ]
139
+ ];
140
+ $ diConfig ->extend ($ cacheFactoryConfig );
141
+ }
142
+
130
143
$ sharedInstances = [
131
144
'Magento\Framework\App\DeploymentConfig ' => $ deploymentConfig ,
132
145
'Magento\Framework\App\Filesystem\DirectoryList ' => $ this ->directoryList ,
You can’t perform that action at this time.
0 commit comments