partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 79bf3c5808175d7627ddb522578002027c0062b7
parent 45312bdaaadf0417cd55837a6f6689469e08bfab
Author: Timo A. Hummel <felicitus@felicitus.org>
Date:   Fri,  6 Nov 2015 23:41:04 +0100

Removed legacy cronjobs

Diffstat:
Dcronjobs/CheckForUpdates.php | 20--------------------
Dcronjobs/CreateStatisticSnapshot.php | 13-------------
Dcronjobs/UpdateTipsOfTheDay.php | 23-----------------------
3 files changed, 0 insertions(+), 56 deletions(-)

diff --git a/cronjobs/CheckForUpdates.php b/cronjobs/CheckForUpdates.php @@ -1,20 +0,0 @@ -<?php -/** - * Checks for PartKeepr updates - * Typically scheduled every one or two days. - * - * @author felicitus - * - */ -namespace PartKeepr\Cronjobs; - -include(__DIR__."/../src/backend/PartKeepr/PartKeepr.php"); - -use PartKeepr\CronLoggerBundle\Services\CronLoggerManager; -use PartKeepr\PartKeepr; - -PartKeepr::initialize(); - -PartKeepr::doVersionCheck(); - -CronLoggerManager::getInstance()->markCronRun(basename(__FILE__)); diff --git a/cronjobs/CreateStatisticSnapshot.php b/cronjobs/CreateStatisticSnapshot.php @@ -1,13 +0,0 @@ -<?php -namespace PartKeepr\Cronjobs; - -include(__DIR__."/../src/backend/PartKeepr/PartKeepr.php"); - -use PartKeepr\CronLoggerBundle\Services\CronLoggerManager; -use PartKeepr\PartKeepr; -use PartKeepr\Statistic\StatisticSnapshotManager; - -PartKeepr::initialize(); -StatisticSnapshotManager::getInstance()->createSnapshot(); - -CronLoggerManager::getInstance()->markCronRun(basename(__FILE__)); diff --git a/cronjobs/UpdateTipsOfTheDay.php b/cronjobs/UpdateTipsOfTheDay.php @@ -1,23 +0,0 @@ -<?php -/** - * Updates the tip of the day title index. - * Typically scheduled once or twice a day. - * - * The API to retrieve tips has an upper limit of 500 requests/day, so don't schedule this each minute. - * - * @author felicitus - * - */ -namespace PartKeepr\Cronjobs; - -include(__DIR__."/../src/backend/PartKeepr/PartKeepr.php"); - -use PartKeepr\CronLoggerBundle\Services\CronLoggerManager; -use PartKeepr\PartKeepr; -use PartKeepr\TipOfTheDayBundle\Entity\TipOfTheDay; - -PartKeepr::initialize(); - -TipOfTheDay::syncTips(); - -CronLoggerManager::getInstance()->markCronRun(basename(__FILE__));