|
Lines 277-284
sub insert_single_holiday {
Link Here
|
| 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::Caches->get_instance(); |
279 |
my $cache = Koha::Caches->get_instance(); |
| 280 |
$cache->clear_from_cache( 'single_holidays') ; |
280 |
my $key = $self->{branchcode} . "_holidays"; |
| 281 |
$cache->clear_from_cache( 'exception_holidays') ; |
281 |
$cache->clear_from_cache($key); |
| 282 |
|
282 |
|
| 283 |
return $self; |
283 |
return $self; |
| 284 |
|
284 |
|
|
Lines 322-329
sub insert_exception_holiday {
Link Here
|
| 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::Caches->get_instance(); |
324 |
my $cache = Koha::Caches->get_instance(); |
| 325 |
$cache->clear_from_cache( 'single_holidays') ; |
325 |
my $key = $self->{branchcode} . "_holidays"; |
| 326 |
$cache->clear_from_cache( 'exception_holidays') ; |
326 |
$cache->clear_from_cache($key); |
| 327 |
|
327 |
|
| 328 |
return $self; |
328 |
return $self; |
| 329 |
} |
329 |
} |
|
Lines 423-430
UPDATE special_holidays SET title = ?, description = ?
Link Here
|
| 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::Caches->get_instance(); |
425 |
my $cache = Koha::Caches->get_instance(); |
| 426 |
$cache->clear_from_cache( 'single_holidays') ; |
426 |
my $key = $self->{branchcode} . "_holidays"; |
| 427 |
$cache->clear_from_cache( 'exception_holidays') ; |
427 |
$cache->clear_from_cache($key); |
| 428 |
|
428 |
|
| 429 |
return $self; |
429 |
return $self; |
| 430 |
} |
430 |
} |
|
Lines 466-473
UPDATE special_holidays SET title = ?, description = ?
Link Here
|
| 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::Caches->get_instance(); |
468 |
my $cache = Koha::Caches->get_instance(); |
| 469 |
$cache->clear_from_cache( 'single_holidays') ; |
469 |
my $key = $self->{branchcode} . "_holidays"; |
| 470 |
$cache->clear_from_cache( 'exception_holidays') ; |
470 |
$cache->clear_from_cache($key); |
| 471 |
|
471 |
|
| 472 |
return $self; |
472 |
return $self; |
| 473 |
} |
473 |
} |
|
Lines 547-554
sub delete_holiday {
Link Here
|
| 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::Caches->get_instance(); |
549 |
my $cache = Koha::Caches->get_instance(); |
| 550 |
$cache->clear_from_cache( 'single_holidays') ; |
550 |
my $key = $self->{branchcode} . "_holidays"; |
| 551 |
$cache->clear_from_cache( 'exception_holidays') ; |
551 |
$cache->clear_from_cache($key); |
| 552 |
|
552 |
|
| 553 |
return $self; |
553 |
return $self; |
| 554 |
} |
554 |
} |
|
Lines 578-585
sub delete_holiday_range {
Link Here
|
| 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::Caches->get_instance(); |
580 |
my $cache = Koha::Caches->get_instance(); |
| 581 |
$cache->clear_from_cache( 'single_holidays') ; |
581 |
my $key = $self->{branchcode} . "_holidays"; |
| 582 |
$cache->clear_from_cache( 'exception_holidays') ; |
582 |
$cache->clear_from_cache($key); |
| 583 |
|
583 |
|
| 584 |
} |
584 |
} |
| 585 |
|
585 |
|
|
Lines 632-639
sub delete_exception_holiday_range {
Link Here
|
| 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::Caches->get_instance(); |
634 |
my $cache = Koha::Caches->get_instance(); |
| 635 |
$cache->clear_from_cache( 'single_holidays') ; |
635 |
my $key = $self->{branchcode} . "_holidays"; |
| 636 |
$cache->clear_from_cache( 'exception_holidays') ; |
636 |
$cache->clear_from_cache($key); |
| 637 |
} |
637 |
} |
| 638 |
|
638 |
|
| 639 |
=head2 isHoliday |
639 |
=head2 isHoliday |