7 my $template_dir = '/data/WebGUI/cms.rot13.org/uploads/temp/templates';
11 concat(templateid,name) as id,
12 concat(namespace,'/',name,'.html') as filename,
13 length(template) as size,
14 iseditable as writable
21 where concat(templateid,name) = ?;
27 where concat(templateid,name) = ?;
30 my $mount = shift || '/mnt2';
32 my $mnt = Fuse::DBI->mount({
33 filenames => $sql_filenames,
35 update => $sql_update,
36 dsn => 'DBI:mysql:dbname=webgui_knjiznice_ffzg_hr',
41 print STDERR "invalidating content in $template_dir\n";
42 opendir(DIR, $template_dir) || die "can't opendir $template_dir: $!";
43 map { unlink "$template_dir/$_" || warn "can't remove $template_dir/$_: $!" } grep { !/^\./ && -f "$template_dir/$_" } readdir(DIR);
49 print "Press enter to exit...";