forked from friendica/friendica-addons
All external poller addons are now deactivated
This commit is contained in:
parent
c1b2989812
commit
5148db9d6d
4 changed files with 23 additions and 8 deletions
|
@ -4,6 +4,7 @@
|
|||
* Description: Execute updates on pageviews, without the need of commandline php - only for use in total desperation as page loads will take forever
|
||||
* Version: 1.2
|
||||
* Author: Fabio Comuni <http://kirgroup.com/profile/fabrix>
|
||||
* Status: Unsupported
|
||||
*/
|
||||
|
||||
function poormancron_install() {
|
||||
|
@ -36,17 +37,21 @@ function poormancron_uninstall() {
|
|||
|
||||
|
||||
function poormancron_hook(&$a,&$b) {
|
||||
$now = time();
|
||||
$lastupdate = get_config('poormancron', 'lastupdate');
|
||||
return; // deactivated
|
||||
|
||||
// 300 secs, 5 mins
|
||||
if (!$lastupdate || ($now-$lastupdate)>300) {
|
||||
set_config('poormancron','lastupdate', $now);
|
||||
proc_run('php',"include/poller.php");
|
||||
}
|
||||
//$now = time();
|
||||
//$lastupdate = get_config('poormancron', 'lastupdate');
|
||||
|
||||
// 300 secs, 5 mins
|
||||
//if (!$lastupdate || ($now-$lastupdate)>300) {
|
||||
// set_config('poormancron','lastupdate', $now);
|
||||
// proc_run('php',"include/poller.php");
|
||||
//}
|
||||
}
|
||||
|
||||
function poormancron_procrun(&$a, &$arr) {
|
||||
return; // deactivated
|
||||
|
||||
if (get_config('poormancron','usecli')==1) return;
|
||||
$argv = $arr['args'];
|
||||
$arr['run_cmd'] = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue