refs #6728 automatically cache settings in tracker cache if used in tracker mode.
As soon as a setting is used in tracker mode we will cache it now making it much easier for developers to use settings in tracker mode and we will no longer query the database on each tracking request if a setting is requested apart from cache creation. Refactored the settings API under the hood to make this possible. The classes were doing things they were not supposed to do. For instance settings class also took care of storage which it should not and settings class took care of many validation things that should be done in a setting class. I cleaned up that code and it is also much better testable now.
parent
a3d51aa4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- core/Plugin/Settings.php 51 ajouts, 195 suppressionscore/Plugin/Settings.php
- core/Settings/Setting.php 86 ajouts, 3 suppressionscore/Settings/Setting.php
- core/Settings/Storage.php 144 ajouts, 0 suppressioncore/Settings/Storage.php
- core/Settings/Storage/Factory.php 29 ajouts, 0 suppressioncore/Settings/Storage/Factory.php
- core/Settings/StorageInterface.php 9 ajouts, 3 suppressionscore/Settings/StorageInterface.php
- core/Settings/UserSetting.php 1 ajout, 1 suppressioncore/Settings/UserSetting.php
- core/Tracker/SettingsStorage.php 57 ajouts, 0 suppressioncore/Tracker/SettingsStorage.php
- tests/PHPUnit/Integration/Plugin/SettingsTest.php 72 ajouts, 423 suppressionstests/PHPUnit/Integration/Plugin/SettingsTest.php
- tests/PHPUnit/Integration/Settings/CorePluginTestSettings.php 25 ajouts, 0 suppression...s/PHPUnit/Integration/Settings/CorePluginTestSettings.php
- tests/PHPUnit/Integration/Settings/IntegrationTestCase.php 125 ajouts, 0 suppressiontests/PHPUnit/Integration/Settings/IntegrationTestCase.php
- tests/PHPUnit/Integration/Settings/Storage/FactoryTest.php 62 ajouts, 0 suppressiontests/PHPUnit/Integration/Settings/Storage/FactoryTest.php
- tests/PHPUnit/Integration/Settings/StorageTest.php 162 ajouts, 0 suppressiontests/PHPUnit/Integration/Settings/StorageTest.php
- tests/PHPUnit/Integration/Settings/SystemSettingTest.php 149 ajouts, 0 suppressiontests/PHPUnit/Integration/Settings/SystemSettingTest.php
- tests/PHPUnit/Integration/Settings/UserSettingTest.php 246 ajouts, 0 suppressiontests/PHPUnit/Integration/Settings/UserSettingTest.php
- tests/PHPUnit/Integration/Tracker/SettingsStorageTest.php 138 ajouts, 0 suppressiontests/PHPUnit/Integration/Tracker/SettingsStorageTest.php
Chargement en cours
Veuillez vous inscrire ou vous se connecter pour commenter