Bug #5576

Cache Manager receives bloated configuration array

Added by Robert Lemke over 5 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2009-11-30
Priority:Must have Due date:
Assigned To:Robert Lemke % Done:

100%

Category:Configuration
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 7
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

The Configuration Manager gets the names and options caches configured in Caches.yaml by a setter methods. This array should only contain names of caches (cache identifiers) and their configuration options. In reality however this array contains additional information from somewhere:

array(31) { ["Default"]=> array(3) { ["frontend"]=> string(40) "F3\FLOW3\Cache\Frontend\VariableFrontend" ["backend"]=> string(34) "F3\FLOW3\Cache\Backend\FileBackend" ["backendOptions"]=> array(1) { ["defaultLifetime"]=> int(0) } } ["FLOW3_AOP_ProxyClassCodes"]=> array(1) { ["frontend"]=> string(38) "F3\FLOW3\Cache\Frontend\StringFrontend" } ["FLOW3_AOP_ProxyBuildInformation"]=> array(0) { } ["FLOW3_AOP_TargetClassInformation"]=> array(0) { } ["FLOW3_Cache_ClassFiles"]=> array(0) { } ["FLOW3_Cache_ResourceFiles"]=> array(0) { } ["FLOW3_Configuration"]=> array(0) { } ["FLOW3_Core"]=> array(0) { } ["FLOW3_Monitor"]=> array(0) { } ["FLOW3_Reflection"]=> array(0) { } ["FLOW3_Resource_MetaData"]=> array(0) { } ["FLOW3_Resource_Status"]=> array(1) { ["frontend"]=> string(38) "F3\FLOW3\Cache\Frontend\StringFrontend" } ["FLOW3_Security_Policy"]=> array(0) { } ["FLOW3_Security_Cryptography_RSAWallet"]=> array(2) { ["backend"]=> string(34) "F3\FLOW3\Cache\Backend\FileBackend" ["backendOptions"]=> array(1) { ["defaultLifetime"]=> int(30) } } ["FLOW3_Object_Configurations"]=> array(0) { } ["FLOW3_MVC_Web_Routing_FindMatchResults"]=> array(2) { ["backend"]=> string(45) "F3\FLOW3\Cache\Backend\TransientMemoryBackend" ["backendOptions"]=> array(1) { ["defaultLifetime"]=> int(0) } } ["FLOW3_MVC_Web_Routing_Resolve"]=> array(3) { ["frontend"]=> string(38) "F3\FLOW3\Cache\Frontend\StringFrontend" ["backend"]=> string(45) "F3\FLOW3\Cache\Backend\TransientMemoryBackend" ["backendOptions"]=> array(1) { ["defaultLifetime"]=> int(0) } } ["Fluid_SyntaxTreeCache"]=> array(3) { ["frontend"]=> string(40) "F3\FLOW3\Cache\Frontend\VariableFrontend" ["backend"]=> string(45) "F3\FLOW3\Cache\Backend\TransientMemoryBackend" ["backendOptions"]=> array(1) { ["defaultLifetime"]=> int(0) } } ["FLOW3"]=> array(17) { ["Default"]=> array(3) { ["frontend"]=> string(40) "F3\FLOW3\Cache\Frontend\VariableFrontend" ["backend"]=> string(34) "F3\FLOW3\Cache\Backend\FileBackend" ["backendOptions"]=> array(1) { ["defaultLifetime"]=> int(0) } } ["FLOW3_AOP_ProxyClassCodes"]=> array(1) { ["frontend"]=> string(38) "F3\FLOW3\Cache\Frontend\StringFrontend" } ["FLOW3_AOP_ProxyBuildInformation"]=> array(0) { } ["FLOW3_AOP_TargetClassInformation"]=> array(0) { } ["FLOW3_Cache_ClassFiles"]=> array(0) { } ["FLOW3_Cache_ResourceFiles"]=> array(0) { } ["FLOW3_Configuration"]=> array(0) { } ["FLOW3_Core"]=> array(0) { } ["FLOW3_Monitor"]=> array(0) { } ["FLOW3_Reflection"]=> array(0) { } ["FLOW3_Resource_MetaData"]=> array(0) { } ["FLOW3_Resource_Status"]=> array(1) { ["frontend"]=> string(38) "F3\FLOW3\Cache\Frontend\StringFrontend" } ["FLOW3_Security_Policy"]=> array(0) { } ["FLOW3_Security_Cryptography_RSAWallet"]=> array(2) { ["backend"]=> string(34) "F3\FLOW3\Cache\Backend\FileBackend" ["backendOptions"]=> array(1) { ["defaultLifetime"]=> int(30) } } ["FLOW3_Object_Configurations"]=> array(0) { } ["FLOW3_MVC_Web_Routing_FindMatchResults"]=> array(2) { ["backend"]=> string(45) "F3\FLOW3\Cache\Backend\TransientMemoryBackend" ["backendOptions"]=> array(1) { ["defaultLifetime"]=> int(0) } } ["FLOW3_MVC_Web_Routing_Resolve"]=> array(3) { ["frontend"]=> string(38) "F3\FLOW3\Cache\Frontend\StringFrontend" ["backend"]=> string(45) "F3\FLOW3\Cache\Backend\TransientMemoryBackend" ["backendOptions"]=> array(1) { ["defaultLifetime"]=> int(0) } } } ["DocumentationBrowser"]=> array(0) { } ["ExtJS"]=> array(0) { } ["Fluid"]=> array(1) { ["Fluid_SyntaxTreeCache"]=> array(3) { ["frontend"]=> string(40) "F3\FLOW3\Cache\Frontend\VariableFrontend" ["backend"]=> string(45) "F3\FLOW3\Cache\Backend\TransientMemoryBackend" ["backendOptions"]=> array(1) { ["defaultLifetime"]=> int(0) } } } ["Kickstart"]=> array(0) { } ["PHP6"]=> array(0) { } ["PHPCR"]=> array(0) { } ["PHPUnit"]=> array(0) { } ["Party"]=> array(0) { } ["TYPO3CR"]=> array(0) { } ["Testing"]=> array(0) { } ["Welcome"]=> array(0) { } ["YAML"]=> array(0) { } }

Associated revisions

Revision cc0e877a
Added by Robert Lemke over 5 years ago

[-API] FLOW3 (Configuration): Removed the Configuration Manager's getSettings() method! If you relied on this method please use getConfiguration() instead, but be aware that this is not an official API method. The recommended way to retrieve settings are injectSettings() methods (see manual for more information). Relates to #5577
[~TASK] FLOW3 (Configuration): Cleaned up and refactored the Configuration Manager's loadConfiguration() method. Resolves #5577
[BUGFIX] FLOW3 (Configuration): Fixed build of the caches configuration array. Resolves #5576.

History

#1 Updated by Robert Lemke over 5 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3526.

Also available in: Atom PDF