1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 09:48:47 +02:00
phorge-phorge/src/applications/cache
epriestley 52a29be70d Introduce a request cache mechanism
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.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T8424

Differential Revision: https://secure.phabricator.com/D13153
2015-06-04 17:27:31 -07:00
..
__tests__ Introduce a request cache mechanism 2015-06-04 17:27:31 -07:00
garbagecollector Complete modularization of the GC daemon 2014-01-15 10:02:31 -08:00
management phtize all the things 2015-05-22 21:16:39 +10:00
spec phtize all the things 2015-05-22 21:16:39 +10:00
storage Fix visiblity of LiskDAO::getConfiguration() 2015-01-14 06:54:13 +11:00
PhabricatorCaches.php Introduce a request cache mechanism 2015-06-04 17:27:31 -07:00
PhabricatorKeyValueDatabaseCache.php phtize all the things 2015-05-22 21:16:39 +10:00