summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorjeff <jeff>2007-09-18 06:07:09 +0000
committerjeff <jeff>2007-09-18 06:07:09 +0000
commite1505ce8386ac19d01bbcf7ef2ac6f1f3798560b (patch)
treeab52696ac4d31c57eb3ea13eab0b6a11eb47d2d8 /FS
parent8c8fcedb6c24e54ae4d13c8107ef03db35934622 (diff)
auto commit for vacuum
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Cron/expire_user_pref.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/Cron/expire_user_pref.pm b/FS/FS/Cron/expire_user_pref.pm
index 7ab73d280..32269271e 100644
--- a/FS/FS/Cron/expire_user_pref.pm
+++ b/FS/FS/Cron/expire_user_pref.pm
@@ -12,6 +12,9 @@ sub expire_user_pref {
" AND expiration < ?";
my $sth = dbh->prepare($sql) or die dbh->errstr;
$sth->execute(time) or die $sth->errstr;
+
+ dbh->commit or die dbh->errstr if $FS::UID::AutoCommit
+
}
1;