summaryrefslogtreecommitdiffstats
path: root/lib/private/AllConfig.php
Commit message (Collapse)AuthorAgeFilesLines
* Store setUserValue as string in cacheRoeland Jago Douma2018-03-191-2/+2
| | | | | | | | | | | | | | | | We cache the values we set in the setUserValue function. However since the values are strings in the database we check if a value is equal with string comparison Now if the function was called with a $value of int or float. It would be stored in the DB (and thus converted to string) and in the cache (not converted thus as int/float). Now if another call comes in that sets it to the same value (I'm looking at you LDAP!). The check would fail since we would be comparing int/float to string which fails by definition. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove IAppConfig::setValueRoeland Jago Douma2018-01-171-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove IAppConfig::getValueRoeland Jago Douma2018-01-171-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Simple IAppConfig deprecationsRoeland Jago Douma2018-01-171-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* More phpstorm inspection fixesRoeland Jago Douma2017-07-241-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #3023 from ↵Christoph Wurst2017-01-171-1/+1
|\ | | | | | | | | nextcloud/issue-2915-filter-out-sensitive-appconfigs Filter out sensitive appconfig values
| * Filter out sensitive appconfig valuesJoas Schilling2017-01-111-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | remove non required sql requestsLoki30002017-01-101-3/+8
|/ | | | | ``` SELECT `appid`, `configkey`, `configvalue` FROM `preferences` WHERE `userid` = ''; ```
* Use getvalue to fetch the valueRoeland Jago Douma2016-11-161-5/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't update value if it is already set to the same valueMorris Jobke2016-11-161-1/+4
| | | | | | | | * this PR makes sure to warm up the cache for that user * then the logic within the "if is in cache" code can be used to reduce needed queries * inspired by @andreas-p - https://github.com/nextcloud/server/pull/2128 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use cache to determine if value need to be updatedRoeland Jago Douma2016-10-131-0/+19
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-2/+4
|
* Remove duplicate database connect logic in mysql setupRobin Appelman2016-07-121-0/+4
|
* Capped cache for user configJörn Friedrich Dreyer2016-06-171-2/+4
|
* Do not allow to store boolean configs, they behave unexpected on postgresJoas Schilling2016-06-061-2/+7
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Moved some files in \OC to PSR-4Roeland Jago Douma2016-04-291-0/+424
* \OC\ActivityManager * \OC\AllConfig * \OC\AppConfig * \OC\AppHelper * \OC\Avatar * \OC\AvatarManager * \OC\CapabilitiesManager * \OC\Config * \OC\ContactsManager * \OC\DatabaseException * \OC\DatabaseSetupException