Homec4science

Add a script for purging long-lived caches

Authored by epriestley <git@epriestley.com> on Dec 15 2011, 00:23.

Description

Add a script for purging long-lived caches

Summary: See task; installs occasionally need to do this themselves, and a
script is much better than me telling them to truncate tables.

Test Plan:
Ran various flavors of this command:

  • purge_cache.php
  • purge_cache.php derp
  • purge_cache.php --help
  • purge_cache.php --all
  • purge_cache.php --differential
  • purge_cache.php --differential --maniphest

Then I verified the actual behavior:

  • Visited a Differential revision with comments, observed cache update in

'Services' tab.

  • Visited a Maniphest task with comments, observed cache update in 'Services'

tab.

  • Reloaded a diff standalone view, got a cache update.

Reviewers: Makinde, btrahan, jungejason

Reviewed By: jungejason

CC: aran, jungejason

Maniphest Tasks: T676

Differential Revision: 1214

Details

Committed
epriestley <git@epriestley.com>Dec 16 2011, 21:43
Pushed
aubortJan 31 2017, 17:16
Parents
rPHb595f8447b3e: Fix comment from D1221 to have updated variable
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH074bf4ed7d54: Add a script for purging long-lived caches (authored by epriestley <git@epriestley.com>).Dec 16 2011, 21:43