]> git.mxchange.org Git - friendica.git/commitdiff
performance improvement in case of db-load
authorPhilipp Holzer <admin@philipp.info>
Mon, 11 Feb 2019 22:39:51 +0000 (23:39 +0100)
committerPhilipp Holzer <admin@philipp.info>
Sun, 17 Feb 2019 19:44:14 +0000 (20:44 +0100)
src/Core/Config/Configuration.php
src/Core/Config/PConfiguration.php

index 2ad11b0ba3dab8d9f16edd7ed2cdf8a4bf573670..2ac0da0ad1b967b0d580f1f559b2d971f3f055e7 100644 (file)
@@ -87,6 +87,7 @@ class Configuration
 
                        if ($dbvalue !== '!<unset>!') {
                                $this->configCache->set($cat, $key, $dbvalue);
+                               return $dbvalue;
                        }
                }
 
index cf7ef6adca005e6cc74123b696e703d402d2936e..99b1aa14698b17d9b14fc0f57c966b39419c22dc 100644 (file)
@@ -79,6 +79,7 @@ class PConfiguration
 
                        if ($dbValue !== '!<unset>!') {
                                $this->configCache->setP($uid, $cat, $key, $dbValue);
+                               return $dbValue;
                        }
                }