Commit 84dc5897 authored by David Morley's avatar David Morley

dont update meta if only checking a single domain

parent e0b79f0c
Pipeline #827 passed with stage
in 4 minutes and 17 seconds
......@@ -442,16 +442,16 @@ foreach ($pods as $pod) {
debug('Success', $domain);
}
updateMeta('pods_updated');
$time_end = microtime(true);
$execution_time = ($time_end - $time_start)/60;
updateMeta('pods_update_runtime', round($execution_time));
if ($languagesupdated) {
updateMeta('languages_updated');
}
//check daily updates
//if a full run
if (!$_domain) {
updateMeta('pods_updated');
$time_end = microtime(true);
$execution_time = ($time_end - $time_start) / 60;
updateMeta('pods_update_runtime', round($execution_time));
if ($languagesupdated) {
updateMeta('languages_updated');
}
if (Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('masterversions_updated', 'date_created'))->diffInHours() > 12) {
require __DIR__ . '/update-masterversions.php';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment