Page MenuHomePhabricator

Implement a user profile image cache
ClosedPublic

Authored by epriestley on May 13 2015, 4:51 PM.
Tags
None
Referenced Files
F22631283: D12826.id30824.diff
Wed, Sep 30, 1:15 AM
Unknown Object (File)
Aug 25 2026, 3:24 AM
Unknown Object (File)
Aug 20 2026, 8:26 AM
Unknown Object (File)
Aug 19 2026, 6:07 AM
Unknown Object (File)
Aug 4 2026, 11:19 AM
Unknown Object (File)
Jul 11 2026, 1:09 AM
Unknown Object (File)
Jul 9 2026, 3:11 AM
Unknown Object (File)
Jul 1 2026, 1:07 PM
Subscribers

Details

Summary

Ref T7707. The general form of this can probably be refined somewhat over time as we have more use cases.

I put this cache on the user object itself because we essentially always need this data and it's trivial to invalidate the cache (we can do it implicilty during reads).

Also fix an issue with short, wide images not thumbnailing properly after recent changes.

Test Plan
  • Loaded some pages; saw caches write; saw good pictures.
  • Reloaded; saw cache reads; saw good pictures.
  • Changed profile picture; saw immediate update.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Implement a user profile image cache.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.May 13 2015, 5:26 PM
src/applications/files/transform/PhabricatorFileThumbnailTransform.php
51

(This is just making sure that we fit in cache if users upload incredibly long filenames.)

src/applications/files/transform/PhabricatorFileThumbnailTransform.php
51

This revision was automatically updated to reflect the committed changes.