don't want to blast an index just because it hasn't changed =)

This commit is contained in:
Roy Johnson 2006-06-28 21:24:38 +00:00
parent b78601e0b5
commit 98eda26a3e

View file

@ -147,6 +147,7 @@ sub updateSite {
my $rs = $session->db->read("select assetId, className from asset where state='published'");
my @searchableAssetIds;
while (my ($id, $class) = $rs->array) {
push(@searchableAssetIds, $id);
my ($done) = $session->db->quickArray("select count(*) from assetIndex where assetId=?",[$id]);
next if $done;
my $asset = WebGUI::Asset->new($session,$id,$class);
@ -155,7 +156,6 @@ sub updateSite {
my $t = [Time::HiRes::gettimeofday()];
$asset->indexContent;
print "(".Time::HiRes::tv_interval($t).")\n";
push(@searchableAssetIds, $id);
}
}