1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 01:32:42 +01:00
phorge-phorge/src/applications/people/cache
epriestley 14fe941c34 Reduce the cost of generating default user profile images
Summary:
See PHI413. You can pre-generate these with `bin/people profileimage --all`, but they're needlessly expensive to generate.

Streamline the workflow and cache some of the cacheable parts to reduce the generation cost.

Test Plan:
  - Ran `bin/people profileimage --all` and saw cost drop from {nav 15.801s > 4.839s}.
  - Set `defaultProfileImagePHID` to `NULL` in `phabricator_user.user` and purged caches with `bin/cache purge --all`.
  - Loaded user directory.
  - Saw default images regenerate relatively quickly.

Differential Revision: https://secure.phabricator.com/D19168
2018-03-01 16:53:17 -08:00
..
PhabricatorUserBadgesCacheType.php Add Badges to UserCache 2017-03-17 10:38:17 -07:00
PhabricatorUserCacheType.php Simplify user cache management of data forms 2016-06-05 08:53:27 -07:00
PhabricatorUserMessageCountCacheType.php Remove "participationStatus" from ConpherenceParticipant 2017-04-19 13:58:42 -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 Reduce the cost of generating default user profile images 2018-03-01 16:53:17 -08:00