This commit is contained in:
Arthur 2014-01-29 11:42:04 +01:00
parent fbb381ff5b
commit 57f1780fb4
1 changed files with 1 additions and 1 deletions

View File

@ -377,10 +377,10 @@ if (isset($_GET['sitemap']))
* This action can be very slow and consume CPU if you have a lot of autoblogs
**/
if( isset($_GET['updateall']) ) {
$lockfile = ".updatealllock";
if( !isset( $_GET['force']) ) {
$max_exec_time=time()+4; // scipt have 4 seconds to update autoblogs
$expire = time() - 5 ; // 5 seconds
$lockfile = ".updatealllock";
$lockfile_contents = array();
if (file_exists($lockfile)){
$lockfile_contents = file_get_contents($lockfile);