mirror of
https://github.com/friendica/friendica
synced 2025-05-05 21:44:11 +02:00
Create PostUpdate class
create new class and update call from worker
This commit is contained in:
parent
6ef2fd56f7
commit
1c7fd310d2
2 changed files with 279 additions and 6 deletions
|
@ -1,15 +1,14 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file src/worker/CronJobs.php
|
||||
*/
|
||||
|
||||
namespace Friendica\Worker;
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Database\PostUpdate;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Model\Photo;
|
||||
|
@ -18,7 +17,6 @@ use Friendica\Protocol\PortableContact;
|
|||
use dba;
|
||||
|
||||
require_once 'include/dba.php';
|
||||
require_once 'include/post_update.php';
|
||||
require_once 'mod/nodeinfo.php';
|
||||
|
||||
class CronJobs
|
||||
|
@ -28,7 +26,6 @@ class CronJobs
|
|||
global $a;
|
||||
|
||||
require_once 'include/datetime.php';
|
||||
require_once 'include/post_update.php';
|
||||
require_once 'mod/nodeinfo.php';
|
||||
|
||||
// No parameter set? So return
|
||||
|
@ -39,9 +36,9 @@ class CronJobs
|
|||
logger("Starting cronjob " . $command, LOGGER_DEBUG);
|
||||
|
||||
// Call possible post update functions
|
||||
// see include/post_update.php for more details
|
||||
// see src/Database/PostUpdate.php for more details
|
||||
if ($command == 'post_update') {
|
||||
post_update();
|
||||
PostUpdate::update();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue