daily('clearAllCacheEntries', null, self::LOWEST_PRIORITY); if (CorePluginsAdmin::isMarketplaceEnabled()) { $this->daily('sendNotificationIfUpdatesAvailable', null, self::LOWEST_PRIORITY); } } public function clearAllCacheEntries() { $marketplace = new MarketplaceApiClient(); $marketplace->clearAllCacheEntries(); } public function sendNotificationIfUpdatesAvailable() { $updateCommunication = new UpdateCommunication(); if ($updateCommunication->isEnabled()) { $updateCommunication->sendNotificationIfUpdatesAvailable(); } } }