per-agent configuration of batch processors, #71837
[freeside.git] / torrus / bin / clearcache.in
1 #!@PERL@
2 #  Copyright (C) 2002  Stanislav Sinyagin
3 #
4 #  This program is free software; you can redistribute it and/or modify
5 #  it under the terms of the GNU General Public License as published by
6 #  the Free Software Foundation; either version 2 of the License, or
7 #  (at your option) any later version.
8 #
9 #  This program is distributed in the hope that it will be useful,
10 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 #  GNU General Public License for more details.
13 #
14 #  You should have received a copy of the GNU General Public License
15 #  along with this program; if not, write to the Free Software
16 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17
18 # $Id: clearcache.in,v 1.1 2010-12-27 00:04:01 ivan Exp $
19 # Stanislav Sinyagin <ssinyagin@yahoo.com>
20
21 BEGIN { require '@torrus_config_pl@'; }
22
23 use Torrus::Log;
24
25 use Torrus::Renderer;
26
27 &Torrus::DB::setSafeSignalHandlers();
28
29 my $renderer = new Torrus::Renderer;
30 $renderer->clearcache();
31 undef $renderer;
32
33 Info('Renderer cache cleared');
34 exit 0;
35
36 # Local Variables:
37 # mode: perl
38 # indent-tabs-mode: nil
39 # perl-indent-level: 4
40 # End: