This website requires JavaScript.
Explore
Help
Sign in
revi-archive
/
phorge-phorge
Watch
1
Star
0
Fork
You've already forked phorge-phorge
0
mirror of
https://we.phorge.it/source/phorge.git
synced
2024-11-23 15:22:41 +01:00
Code
Issues
Releases
Wiki
Activity
215553c261
phorge-phorge
/
scripts
/
util
/
purge_cache.php
6 lines
95 B
PHP
Raw
Normal View
History
Unescape
Escape
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
2011-12-15 00:23:31 +01:00
#!/usr/bin/env php
<
?
php
Provide 'bin/cache', for managing caches Summary: See <https://github.com/facebook/phabricator/issues/323>. We have a very old cache management script which doesn't purge all the modern caches (and does purge some caches which are no longer in use). Update it so it purges all the modern caches (remarkup, general, changeset), no longer purges outdated caches, and is easier to use. Also delete a lot of "this script has moved" scripts from the last few rounds of similar cleanup, I believe all of these have been in master for at least several months, which should be enough time for users to get used to the new stuff. Test Plan: Ran `bin/cache` with various arguments. Verified caches were purged. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D5978
2013-05-20 19:16:35 +02:00
echo
"
This script is obsolete. Use 'bin/cache' instead.
\n
"
;
exit
(
1
);
Copy permalink