Page MenuHomePhabricator

Introduce a request cache mechanism
ClosedPublic

Authored by epriestley on Jun 4 2015, 7:19 PM.
Tags
None
Referenced Files
F18635548: D13153.diff
Wed, Sep 17, 1:57 AM
F18613950: D13153.id31791.diff
Sun, Sep 14, 11:46 AM
F18505783: D13153.id.diff
Sep 5 2025, 12:59 AM
F18498253: D13153.diff
Sep 4 2025, 6:33 PM
F18446183: D13153.id.diff
Aug 31 2025, 8:59 PM
F18423059: D13153.diff
Aug 30 2025, 7:11 PM
F18098579: D13153.id31791.diff
Aug 8 2025, 9:24 PM
F17916663: D13153.id.diff
Jul 29 2025, 10:28 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