Skip to content
Snippets Groups Projects
Verified Commit 22064404 authored by Alberto Paderno's avatar Alberto Paderno
Browse files

Issue #3465522: Do not populate DrupalApcCache::$operations when...

Issue #3465522: Do not populate DrupalApcCache::$operations when $conf[apc_show_debug] has not been set or it is FALSE
parent d701b8ec
No related branches found
No related tags found
1 merge request!52Issue #3465522: Do not populate DrupalApcCache::$operations when $conf[apc_show_debug] has not been set or it is FALSE
Pipeline #241985 passed
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="PhpInappropriateInheritDocUsageInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="PhpUnused" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
</profile>
</component>
\ No newline at end of file
......@@ -428,12 +428,12 @@ public static function operations() {
/**
* Adds a new operation to the list of operations.
*
* @param array $new_operation
* @param array $operation
* The new operation to add.
*/
protected function addOperation($new_operation) {
if (is_array($new_operation)) {
self::$operations[] = $new_operation;
protected function addOperation($operation) {
if (variable_get('apc_show_debug', FALSE) && is_array($operation)) {
self::$operations[] = $operation;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment