Homec4science

Provide a pure APC cache for runtime caching

Authored by epriestley <git@epriestley.com> on Dec 6 2016, 12:30.

Description

Provide a pure APC cache for runtime caching

Summary:
Ref T11954. Depends on D16992. We have some data which can be generated and cached at runtime. Three examples are:

  • Class map from Conduit method names to implementing classes.
  • Class map from PHID types to implementing classes.
  • The main routing map.

None of these are huge wins but they impose global costs and can be shaved down through caching without introducing an enormous amount of new complexity.

The cost to these maps is that sometimes you'll need to restart your webserver, even in development mode if these caches are active. However, in some cases these changes are very rare, and in other cases we can just leave the cache disabled in development mode without a huge complexity cost.

Specifically, the Conduit/PHID type class maps are self-validating and can not go bad, even in development mode.

The routing map will be able to, but I plan to just disable it in development mode.

This provides a general-purpose pure APC cache stack for storing this data.

Test Plan: See future changes.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11954

Differential Revision: https://secure.phabricator.com/D16993

Details

Committed
epriestley <git@epriestley.com>Dec 6 2016, 17:34
Pushed
aubortJan 31 2017, 17:16
Parents
rPH4faa4b451f41: When viewing a branch, preview differences from master
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH52112620a3d2: Provide a pure APC cache for runtime caching (authored by epriestley <git@epriestley.com>).Dec 6 2016, 17:34