1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00
phorge-phorge/src
epriestley 74cb7a8971 Add database configuration source to the source stack
Summary:
Read configuration from the new database source.

This adds an extra MySQL connect + query to every page. They're very cheap so I think we can suffer them for now, but I'd like to put cache in front of this at some point. The difficulties are:

  - If we use APC, multi-frontend installs (Facebook) can't dirty it (major problem), and the CLI can't dirty it (fine for now, maybe a major problem later).
  - If we use Memcache, we need to add config stuff.
  - We could use APC in all non-Facebook installs if we can make it dirtyable from the CLI, but I don't see a reasonable way to do that.
  - We don't have any other caches which are faster than the database.

So I'll probably implement Memcache support at some point, although this is a lame excuse for it.

Test Plan: Added some config values via web UI, saw them active on the install.

Reviewers: btrahan, codeblock, vrana

Reviewed By: codeblock

CC: aran

Maniphest Tasks: T2221

Differential Revision: https://secure.phabricator.com/D4296
2013-01-17 15:10:21 -08:00
..
aphront Move "show all config" from DarkConsole to /config/ 2013-01-16 11:10:41 -08:00
applications Restore some title glyphs to new-style applications 2013-01-17 15:04:57 -08:00
docs Document that ext/mysqli may be used instead of ext/mysql 2013-01-04 12:50:09 -08:00
infrastructure Add database configuration source to the source stack 2013-01-17 15:10:21 -08:00
view Genericize implementing views which expose common attributes 2013-01-16 10:50:41 -08:00
__celerity_resource_map__.php Minor homepage re-format 2013-01-17 14:02:18 -08:00
__phutil_library_init__.php Delete license headers from files 2012-11-05 11:16:51 -08:00
__phutil_library_map__.php Add database configuration source to the source stack 2013-01-17 15:10:21 -08:00