mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-05 05:02:44 +01:00
26aac16346
Summary: We currently garbage collect general cache entries after a set period of time (30 days by default), but the recent changes to DarkConsole have left us writing a lot of large, short-TTL data to the cache. In addition to a maximum age, GC cache entires after they TTL out. Test Plan: Ran GC daemon, saw TTL'd entries get collected. Inserted a TTL'd entry, saw it get collected by GC. Saw non-ttl'd entries not get collected. Reviewers: chad Reviewed By: chad CC: aran Differential Revision: https://secure.phabricator.com/D4990
2 lines
81 B
SQL
2 lines
81 B
SQL
ALTER TABLE {$NAMESPACE}_cache.cache_general
|
|
ADD KEY `key_ttl` (cacheExpires);
|