Project

General

Profile

Actions

Bug #95111

closed

"Feature Toggles" with file OPcaching disabled doesn't work

Added by Davide Alghi over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2021-09-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

"Feature Toggles", in "ADMIN TOOLS>Settings" module, has saving problems, if file OPcaching is disabled (opcache.file_update_protection=0).
The "typo3conf/LocalConfiguration.php" file is not updated correctly.
This problem was already reported #59662

The "featuresSave" action, in the "Settings" controller for "install" system extension, loops over all available features and creates/saves LocalConfiguration file for each feature.
If OPcache is enabled and file caching is disabled, each save overwrites the previous one, but with initial features configuration values.

My opinion
"featuresSave" action should save LocalConfiguration file atomically, as "Configure Installation-Wide Options" does via "ConfigurationManager::setLocalConfigurationValuesByPathValuePairs()"

PS: I have selected TYPO3 v11, but the problem also exists in TYPO3 v9 and v10


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #59662: Problem with subsequent calls to $configurationManager->setLocalConfigurationValueByPath and 'LocalConfiguration invalid'Closed2014-06-19

Actions
Related to TYPO3 Core - Task #95112: FeaturetogglesClosed2021-09-05

Actions
Actions

Also available in: Atom PDF