source: TFP-WebServer/WebServer/src/FileCache/InvalidateCachesCmd.cs@ 494

Last change on this file since 494 was 487, checked in by alloc, 5 months ago

1.1.0.1 Release for V 1.0

File size: 681 bytes
RevLine 
[397]1using System.Collections.Generic;
2using JetBrains.Annotations;
3
[402]4namespace Webserver.FileCache {
[397]5 [UsedImplicitly]
6 public class InvalidateCachesCmd : ConsoleCmdAbstract {
[487]7 public override string[] getCommands () {
[397]8 return new[] {"invalidatecaches"};
9 }
10
[487]11 public override string getDescription () {
[397]12 return "Invalidate contents of web file caches";
13 }
14
[487]15 public 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.