Page MenuHomePhabricator

Introduce a request cache mechanism
ClosedPublic

Authored by epriestley on Jun 4 2015, 7:19 PM.
Tags
None
Referenced Files
F14076388: D13153.diff
Thu, Nov 21, 5:05 PM
Unknown Object (File)
Fri, Nov 15, 1:47 PM
Unknown Object (File)
Thu, Oct 24, 11:18 PM
Unknown Object (File)
Thu, Oct 24, 1:21 PM
Unknown Object (File)
Oct 17 2024, 2:12 AM
Unknown Object (File)
Oct 9 2024, 2:00 AM
Unknown Object (File)
Oct 1 2024, 12:59 AM
Unknown Object (File)
Sep 19 2024, 2:37 AM
Subscribers

Details

Summary

Ref T8424. This adds a standard KeyValueCache to serve as a request cache.

In particular, I need to cache Spaces (they are frequently accessed, sometimes by multiple viewers) but not have them survive longer than the scope of one request.

This request cache is explicitly destroyed by each web request and each daemon request.

In the very long term, building this kind of construct supports reusing PHP interpreters to run web requests (see some discussion in T2312).

Test Plan
  • Added and executed unit tests.
  • Ran every daemon.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable