Page MenuHomePhabricator

Introduce a request cache mechanism
ClosedPublic

Authored by epriestley on Jun 4 2015, 7:19 PM.
Tags
None
Referenced Files
F13082384: D13153.diff
Wed, Apr 24, 10:07 PM
Unknown Object (File)
Sun, Apr 21, 4:16 PM
Unknown Object (File)
Fri, Apr 19, 3:17 PM
Unknown Object (File)
Wed, Apr 17, 3:20 PM
Unknown Object (File)
Thu, Apr 11, 7:27 AM
Unknown Object (File)
Tue, Apr 9, 4:49 AM
Unknown Object (File)
Mar 22 2024, 9:09 PM
Unknown Object (File)
Mar 22 2024, 8:22 PM
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