Skip to content

Instantly share code, notes, and snippets.

@prestarocket
Created May 8, 2016 11:27
Show Gist options
  • Save prestarocket/1c5481706b7b34757d9dadad7aec89a1 to your computer and use it in GitHub Desktop.
Save prestarocket/1c5481706b7b34757d9dadad7aec89a1 to your computer and use it in GitHub Desktop.
prestashop cron method
/* Run cron tasks */
public function hookActionCronJob()
{
return $this->cronTask();
}
/* Return cron job execution frequency */
public function getCronFrequency()
{
return array(
'hour' => -1,
'day' => -1,
'month' => -1,
'day_of_week' => -1
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment