Improve performance of settings save by not querying the DB if submitted value is the same
This commit is contained in:
@@ -123,6 +123,10 @@ class PConfig {
|
||||
|
||||
global $a;
|
||||
|
||||
if (self::get($uid, $family, $key) === $value) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// manage array value
|
||||
$dbvalue = (is_array($value)?serialize($value):$value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user