Last change
on this file since 399 was 397, checked in by alloc, 2 years ago |
Added command to invalidate file caches (actual command implementation)
|
File size:
683 bytes
|
Rev | Line | |
---|
[397] | 1 | using System.Collections.Generic;
|
---|
| 2 | using JetBrains.Annotations;
|
---|
| 3 |
|
---|
| 4 | namespace AllocsFixes.FileCache {
|
---|
| 5 | [UsedImplicitly]
|
---|
| 6 | public class InvalidateCachesCmd : ConsoleCmdAbstract {
|
---|
| 7 | public override string[] GetCommands () {
|
---|
| 8 | return new[] {"invalidatecaches"};
|
---|
| 9 | }
|
---|
| 10 |
|
---|
| 11 | public override string GetDescription () {
|
---|
| 12 | return "Invalidate contents of web file caches";
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | public override string GetHelp () {
|
---|
| 16 | return "TODO";
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
|
---|
| 20 | (int files, int bytes) = AbstractCache.InvalidateAllCaches ();
|
---|
| 21 | SdtdConsole.Instance.Output ($"Caches invalidated, dropped {files} files with {bytes} Bytes");
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.