diff --git a/Jobs/Statistics/CompileMonthlyMetrics.php b/Jobs/Statistics/CompileMonthlyMetrics.php deleted file mode 100644 index c190c815b74..00000000000 --- a/Jobs/Statistics/CompileMonthlyMetrics.php +++ /dev/null @@ -1,67 +0,0 @@ -month = $month; - $this->site = $site; - } - - /** - * Execute the job. - */ - public function handle(): void - { - $currentMonth = date('Ym'); // shall we consider only current month or maybe rather previous month? - - $geoService = Services::get('geoStats'); - $geoService->addMonthlyMetrics($this->month); - if (!$this->site->getData('keepDailyUsageStats') && $this->month != $currentMonth) { - $geoService->deleteDailyMetrics($this->month); - } - - $counterService = Services::get('sushiStats'); - $counterService->addMonthlyMetrics($this->month); - if (!$this->site->getData('keepDailyUsageStats') && $this->month != $currentMonth) { - $counterService->deleteDailyMetrics($this->month); - } - } -}