Don't update talks periodically in a cron job
I don't think this needs to be run daily. It should be OK updating each talk if or when it's updated.
This commit is contained in:
parent
a2ef66a7ff
commit
b2215f0e7f
|
@ -13,14 +13,6 @@ use Drupal\opdavies_talks\Service\TalkCounter;
|
|||
use Drupal\opdavies_talks\Service\TalkCounterInterface;
|
||||
use Drupal\opdavies_talks\Service\TalkDateUpdater;
|
||||
|
||||
/**
|
||||
* Implements hook_cron().
|
||||
*/
|
||||
function opdavies_talks_cron(): void {
|
||||
$dateUpdater = Drupal::service(TalkDateUpdater::class);
|
||||
$dateUpdater->__invoke();
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_data_alter().
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue