Skip to content

Commit

Permalink
only update if dirty.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Jan 24, 2022
1 parent 322cf30 commit 71a1457
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/base/crawlReferralCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ public function updateReferrer($id)
$r = owa_coreAPI::entityFactory('base.referer');
$r->load($id);
$r->crawlReferer();
$r->update();

if ( $r->isDirty() ) {
$r->update();
}
}

public function updateAllReferrer()
Expand Down

0 comments on commit 71a1457

Please sign in to comment.