srchub

srchub Commit Details


Date:2014-12-27 14:32:15 (9 years 11 months ago)
Author:Natalie Adams
Branch:master
Commit:01852cd21535e5d0e0c517d736bdfe308ed67c9d
Parents: 2d814d43e885e143c1aec91058e4e38776a6c6f9
Message:Adding lock file to calc forge cron

Changes:

File differences

indefero/scripts/calculateforgecron.php
100100
101101
102102
103
104
105
106
107
108
109
110
111
103112
104113
105114
106115
107116
108117
109
118
119
120
return $total;
}
$lock_file = Pluf::f('idf_queuecron_lock',
Pluf::f('tmp_folder', '/tmp').'/calcforgecron.lock');
if (file_exists($lock_file)) {
return;
}
file_put_contents($lock_file, time(), LOCK_EX);
require dirname(__FILE__).'/../src/IDF/conf/path.php';
require 'Pluf.php';
Pluf::start(dirname(__FILE__).'/../src/IDF/conf/idf.php');
Pluf_Dispatcher::loadControllers(Pluf::f('idf_views'));
IDF_Views_Admin_getForgeSize(true);
IDF_Views_Admin_getForgeSize(true);
unlink($lock_file);

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.08459s using 14 queries.