diff options
author | Yorhel <git@yorhel.nl> | 2009-07-18 15:48:32 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-07-18 15:48:32 +0200 |
commit | 5cbaaa3616a002a708af785bfa7e0774d50e0751 (patch) | |
tree | f82f4f03b439807b135cce2884e4e95ee71c8722 /lib/VNDB/Handler/VNEdit.pm | |
parent | 0a3ebf61cb7ea608f440029c2f138d97fb5a102a (diff) |
Use PostgreSQL's LISTEN/NOTIFY to notify Multi::Anime for new anime
The notify is called from a trigger function, which is called on any
UPDATE or INSERT INTO query of which the lastfetch column is NULL.
This guarantees that anime info in the DB will always be updated, no
matter how its inserted.
Diffstat (limited to 'lib/VNDB/Handler/VNEdit.pm')
-rw-r--r-- | lib/VNDB/Handler/VNEdit.pm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm index f0f12e88..8e4de7ec 100644 --- a/lib/VNDB/Handler/VNEdit.pm +++ b/lib/VNDB/Handler/VNEdit.pm @@ -92,7 +92,6 @@ sub edit { } $self->multiCmd("ircnotify v$nvid.$nrev"); - $self->multiCmd('anime') if $vid && $frm->{anime} ne $b4{anime} || !$vid && $frm->{anime}; return $self->resRedirect("/v$nvid.$nrev", 'post'); } |