Last change
on this file since 427 was 405, checked in by alloc, 21 months ago |
Refactored console commands for A21 caching
|
File size:
690 bytes
|
Rev | Line | |
---|
[397] | 1 | using System.Collections.Generic;
|
---|
| 2 | using JetBrains.Annotations;
|
---|
| 3 |
|
---|
[402] | 4 | namespace Webserver.FileCache {
|
---|
[397] | 5 | [UsedImplicitly]
|
---|
| 6 | public class InvalidateCachesCmd : ConsoleCmdAbstract {
|
---|
[405] | 7 | protected override string[] getCommands () {
|
---|
[397] | 8 | return new[] {"invalidatecaches"};
|
---|
| 9 | }
|
---|
| 10 |
|
---|
[405] | 11 | protected override string getDescription () {
|
---|
[397] | 12 | return "Invalidate contents of web file caches";
|
---|
| 13 | }
|
---|
| 14 |
|
---|
[405] | 15 | protected override string getHelp () {
|
---|
[397] | 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.