1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 03:12:41 +01:00
phorge-phorge/src/applications/cache
epriestley c767c971ca Add "persistence" types (data, cache, or index) to tables, and tweak what "storage dump" dumps
Summary:
Ref T13000. This marks each table as either "data" (normal data), "cache" (automatically rebuilt, no need to ever dump) or "index" (can be manually rebuilt).

By default, `bin/storage dump` dumps data and index tables, but not cache tables.

With `--no-indexes`, it dumps only data tables. Indexes can be rebuilt after a restore with `bin/search index --all ...`.

Test Plan:
  - Ran `--no-indexes` and normal dumps with `--trace`, verified that cache and index (former case) or cache only (latter case) tables were dumped with `--no-data`.
  - Verified dump has the same number of `CREATE TABLE` statements as before the changes.
  - Reviewed persistence tags in the web UI (note Ferret engine tables are "Index"):

{F5210886}

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13000

Differential Revision: https://secure.phabricator.com/D18682
2017-10-04 12:09:33 -07:00
..
__tests__ Introduce a request cache mechanism 2015-06-04 17:27:31 -07:00
garbagecollector Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
management Add a cache purger for builtin files 2017-06-22 11:13:23 -07:00
purger Add a cache purger for builtin files 2017-06-22 11:13:23 -07:00
spec When "apcu_clear_cache()" exists, prefer it as a cache clear callback over "apc_clear_cache()" 2017-08-21 15:32:44 -07:00
storage Add "persistence" types (data, cache, or index) to tables, and tweak what "storage dump" dumps 2017-10-04 12:09:33 -07:00
PhabricatorCachedClassMapQuery.php Provide a cached class map query for making key-based class lookups more efficient 2016-12-06 08:34:29 -08:00
PhabricatorCaches.php When we purge the request cache, also force PHP to collect cycles 2017-09-28 12:37:22 -07:00
PhabricatorKeyValueDatabaseCache.php Cache generation of the SSH authentication keyfile for sshd 2016-10-21 07:29:40 -07:00
PhabricatorKeyValueSerializingCacheProxy.php Introduce a serializing key-value cache proxy 2016-12-06 09:11:32 -08:00