1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/people/cache
epriestley 4950926130 Validate settings before writing them to the user cache
Summary:
Fixes T11960. In D16998 I removed some code which validated settings on read to improve performance, but lost this replacement validation in shuffling the patch stack.

This restores similar validation before we write the cache. This has the same effect, it's just faster.

Also, bump the cache key to wipe out anything that got bitten (like my account on `secure` rendering dates wrong).

Test Plan:
  - Edited settings, verified the edits held.
  - Faked invalid settings, saw the check throw exceptions.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11960

Differential Revision: https://secure.phabricator.com/D17008
2016-12-07 13:34:37 -08:00
..
PhabricatorUserCacheType.php Simplify user cache management of data forms 2016-06-05 08:53:27 -07:00
PhabricatorUserMessageCountCacheType.php Simplify user cache management of data forms 2016-06-05 08:53:27 -07:00
PhabricatorUserNotificationCountCacheType.php Simplify user cache management of data forms 2016-06-05 08:53:27 -07:00
PhabricatorUserPreferencesCacheType.php Validate settings before writing them to the user cache 2016-12-07 13:34:37 -08:00
PhabricatorUserProfileImageCacheType.php Simplify user cache management of data forms 2016-06-05 08:53:27 -07:00