Lines 276-282
sub insert_single_holiday {
Link Here
|
276 |
|
276 |
|
277 |
|
277 |
|
278 |
# changed the 'single_holidays' table, lets force/reset its cache |
278 |
# changed the 'single_holidays' table, lets force/reset its cache |
279 |
my $cache = Koha::Cache->get_instance(); |
279 |
my $cache = Koha::Caches->get_instance(); |
280 |
$cache->clear_from_cache( 'single_holidays') ; |
280 |
$cache->clear_from_cache( 'single_holidays') ; |
281 |
$cache->clear_from_cache( 'exception_holidays') ; |
281 |
$cache->clear_from_cache( 'exception_holidays') ; |
282 |
|
282 |
|
Lines 321-327
sub insert_exception_holiday {
Link Here
|
321 |
$self->{'exception_holidays'}->{"$options{year}/$options{month}/$options{day}"}{description} = $options{description}; |
321 |
$self->{'exception_holidays'}->{"$options{year}/$options{month}/$options{day}"}{description} = $options{description}; |
322 |
|
322 |
|
323 |
# changed the 'single_holidays' table, lets force/reset its cache |
323 |
# changed the 'single_holidays' table, lets force/reset its cache |
324 |
my $cache = Koha::Cache->get_instance(); |
324 |
my $cache = Koha::Caches->get_instance(); |
325 |
$cache->clear_from_cache( 'single_holidays') ; |
325 |
$cache->clear_from_cache( 'single_holidays') ; |
326 |
$cache->clear_from_cache( 'exception_holidays') ; |
326 |
$cache->clear_from_cache( 'exception_holidays') ; |
327 |
|
327 |
|
Lines 422-428
UPDATE special_holidays SET title = ?, description = ?
Link Here
|
422 |
$self->{'single_holidays'}->{"$options{year}/$options{month}/$options{day}"}{description} = $options{description}; |
422 |
$self->{'single_holidays'}->{"$options{year}/$options{month}/$options{day}"}{description} = $options{description}; |
423 |
|
423 |
|
424 |
# changed the 'single_holidays' table, lets force/reset its cache |
424 |
# changed the 'single_holidays' table, lets force/reset its cache |
425 |
my $cache = Koha::Cache->get_instance(); |
425 |
my $cache = Koha::Caches->get_instance(); |
426 |
$cache->clear_from_cache( 'single_holidays') ; |
426 |
$cache->clear_from_cache( 'single_holidays') ; |
427 |
$cache->clear_from_cache( 'exception_holidays') ; |
427 |
$cache->clear_from_cache( 'exception_holidays') ; |
428 |
|
428 |
|
Lines 465-471
UPDATE special_holidays SET title = ?, description = ?
Link Here
|
465 |
$self->{'exception_holidays'}->{"$options{year}/$options{month}/$options{day}"}{description} = $options{description}; |
465 |
$self->{'exception_holidays'}->{"$options{year}/$options{month}/$options{day}"}{description} = $options{description}; |
466 |
|
466 |
|
467 |
# changed the 'single_holidays' table, lets force/reset its cache |
467 |
# changed the 'single_holidays' table, lets force/reset its cache |
468 |
my $cache = Koha::Cache->get_instance(); |
468 |
my $cache = Koha::Caches->get_instance(); |
469 |
$cache->clear_from_cache( 'single_holidays') ; |
469 |
$cache->clear_from_cache( 'single_holidays') ; |
470 |
$cache->clear_from_cache( 'exception_holidays') ; |
470 |
$cache->clear_from_cache( 'exception_holidays') ; |
471 |
|
471 |
|
Lines 546-552
sub delete_holiday {
Link Here
|
546 |
} |
546 |
} |
547 |
|
547 |
|
548 |
# changed the 'single_holidays' table, lets force/reset its cache |
548 |
# changed the 'single_holidays' table, lets force/reset its cache |
549 |
my $cache = Koha::Cache->get_instance(); |
549 |
my $cache = Koha::Caches->get_instance(); |
550 |
$cache->clear_from_cache( 'single_holidays') ; |
550 |
$cache->clear_from_cache( 'single_holidays') ; |
551 |
$cache->clear_from_cache( 'exception_holidays') ; |
551 |
$cache->clear_from_cache( 'exception_holidays') ; |
552 |
|
552 |
|
Lines 577-583
sub delete_holiday_range {
Link Here
|
577 |
$sth->execute($self->{branchcode}, $options{day}, $options{month}, $options{year}); |
577 |
$sth->execute($self->{branchcode}, $options{day}, $options{month}, $options{year}); |
578 |
|
578 |
|
579 |
# changed the 'single_holidays' table, lets force/reset its cache |
579 |
# changed the 'single_holidays' table, lets force/reset its cache |
580 |
my $cache = Koha::Cache->get_instance(); |
580 |
my $cache = Koha::Caches->get_instance(); |
581 |
$cache->clear_from_cache( 'single_holidays') ; |
581 |
$cache->clear_from_cache( 'single_holidays') ; |
582 |
$cache->clear_from_cache( 'exception_holidays') ; |
582 |
$cache->clear_from_cache( 'exception_holidays') ; |
583 |
|
583 |
|
Lines 631-637
sub delete_exception_holiday_range {
Link Here
|
631 |
$sth->execute($self->{branchcode}, $options{day}, $options{month}, $options{year}); |
631 |
$sth->execute($self->{branchcode}, $options{day}, $options{month}, $options{year}); |
632 |
|
632 |
|
633 |
# changed the 'single_holidays' table, lets force/reset its cache |
633 |
# changed the 'single_holidays' table, lets force/reset its cache |
634 |
my $cache = Koha::Cache->get_instance(); |
634 |
my $cache = Koha::Caches->get_instance(); |
635 |
$cache->clear_from_cache( 'single_holidays') ; |
635 |
$cache->clear_from_cache( 'single_holidays') ; |
636 |
$cache->clear_from_cache( 'exception_holidays') ; |
636 |
$cache->clear_from_cache( 'exception_holidays') ; |
637 |
} |
637 |
} |