1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 04:20:55 +01:00
phorge-phorge/src/applications/celerity
epriestley 7a9174fa21 Digest resource cachekeys to maximum length
Summary:
Fixes T8372. We currently store the entire resource path in the cachekey; shorten it to a maximum of 64 characters.

The key size is 128 and T8372 had an example of a 112-byte key which could run over 128 with a slightly-long cache namespace.

Test Plan:
  - Not 100% sure this is the issue, but it seems likely.
  - Dumped the cachekey before and after the change.
  - Saw values like `celerity:/res/1432859262T/phabricator/e2460e8f/core.pkg.css-6eGjUCJORU3j` now.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T8372

Differential Revision: https://secure.phabricator.com/D13095
2015-06-01 09:04:22 -07:00
..
__tests__ Make Celerity a real application 2014-10-13 11:17:23 -07:00
application Updates 2015-01-25 08:01:28 -08:00
controller Digest resource cachekeys to maximum length 2015-06-01 09:04:22 -07:00
management Fix visibility of PhutilArgumentWorkflow::didConstruct methods 2015-01-16 07:42:07 +11:00
resources Use __CLASS__ instead of hard-coding class names 2015-05-14 07:21:13 +10:00
api.php Make Celerity a real application 2014-10-13 11:17:23 -07:00
CelerityAPI.php Make Celerity a real application 2014-10-13 11:17:23 -07:00
CelerityResourceGraph.php Various linter fixes 2015-05-20 07:27:41 +10:00
CelerityResourceMap.php phtize all the things 2015-05-22 21:16:39 +10:00
CelerityResourceMapGenerator.php phtize all the things 2015-05-22 21:16:39 +10:00
CelerityResourceTransformer.php phtize all the things 2015-05-22 21:16:39 +10:00
CeleritySpriteGenerator.php phtize all the things 2015-05-22 21:16:39 +10:00
CelerityStaticResourceResponse.php phtize all the things 2015-05-22 21:16:39 +10:00