remove cache

* remove cache, cache setup is not easy, todays servers do not really
* need it anymore
* add prototypes and fix parameter issues
* suppress redefinition
This commit is contained in:
Milan
2019-04-13 20:31:25 +02:00
parent e90ea3929d
commit d3fc5f998a
81 changed files with 3190 additions and 20267 deletions

View File

@@ -1,7 +1,8 @@
package studio_timeslot_dates;
use warnings "all";
use strict;
use warnings;
no warnings 'redefine';
use Data::Dumper;
use Date::Calc();
@@ -16,7 +17,7 @@ our @EXPORT_OK = qw(get_columns get insert update delete get_dates);
sub debug;
sub get_columns {
sub get_columns ($){
my $config = shift;
my $dbh = db::connect($config);
@@ -30,7 +31,7 @@ sub get_columns {
# get all studio_timeslot_dates for studio_id within given time range
# calculate start_date, end_date, weeday, day from start and end(datetime)
sub get {
sub get ($$){
my $config = shift;
my $condition = shift;