diff options
author | Yorhel <git@yorhel.nl> | 2011-04-08 19:25:53 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-04-08 19:25:53 +0200 |
commit | 9304d1032723d3c2b9f3dad4d239f12c8c7268fa (patch) | |
tree | 6f6b356adc2a0b74e7a2c0832773a9295e3ab0a8 /lib/VNDB/Handler/Traits.pm | |
parent | 50da6516a687442f09a05416ca1daff04d7bbf37 (diff) |
Update traits_chars cache daily using Multi::Maintenance
I'd really prefer incremental updates, but I'll first need to find a
proper algorithm...
Diffstat (limited to 'lib/VNDB/Handler/Traits.pm')
-rw-r--r-- | lib/VNDB/Handler/Traits.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/VNDB/Handler/Traits.pm b/lib/VNDB/Handler/Traits.pm index 1f3c2872..ea599ed1 100644 --- a/lib/VNDB/Handler/Traits.pm +++ b/lib/VNDB/Handler/Traits.pm @@ -104,8 +104,7 @@ sub traitpage { if(!@$chars) { p; br; br; txt mt '_traitp_nochars'; end; } - # not really cached at the moment - # p; br; txt mt '_traitp_cached'; end; + p; br; txt mt '_traitp_cached'; end; end 'div'; @$chars && $self->charBrowseTable($chars, $np, $f, "/i$trait?m=$f->{m}"); @@ -171,9 +170,6 @@ sub traitedit { } else { $self->dbTraitEdit($trait, %opts, upddate => $frm->{state} == 2 && $t->{state} != 2) if $trait; _set_childs_group($self, $trait, $group||$trait) if ($group||0) != ($t->{group}||0); - - # TEMPORARY SOLUTION! I'll investigate more efficient solutions and incremental updates whenever I have more data - $self->dbExec('SELECT traits_chars_calc()'); } $self->resRedirect("/i$trait", 'post'); return; |