Page MenuHomePhabricator

Introduce a request cache mechanism
ClosedPublic

Authored by epriestley on Jun 4 2015, 7:19 PM.
Tags
None
Referenced Files
F15389097: D13153.id31804.diff
Sat, Mar 15, 4:53 AM
Unknown Object (File)
Sun, Mar 2, 7:38 PM
Unknown Object (File)
Tue, Feb 25, 11:12 AM
Unknown Object (File)
Sat, Feb 22, 7:19 PM
Unknown Object (File)
Feb 11 2025, 9:22 PM
Unknown Object (File)
Feb 8 2025, 6:29 AM
Unknown Object (File)
Feb 8 2025, 6:28 AM
Unknown Object (File)
Feb 8 2025, 6:28 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