my $cache = Koha::Caches->get_instance();
$dbh->do(q|DELETE FROM special_holidays|);
$dbh->do(q|DELETE FROM repeatable_holidays|);
-$cache->clear_from_cache('single_holidays');
+my $branches = Koha::Libraries->search();
+for my $branch ( $branches->next ) {
+ my $key = $branch->branchcode . "_holidays";
+ $cache->clear_from_cache($key);
+}
# Start with a clean slate
$dbh->do('DELETE FROM issues');
$schema->storage->txn_rollback;
C4::Context->clear_syspref_cache();
-$cache->clear_from_cache('single_holidays');
+$branches = Koha::Libraries->search();
+for my $branch ( $branches->next ) {
+ my $key = $branch->branchcode . "_holidays";
+ $cache->clear_from_cache($key);
+}