|
Lines 377-386
sub set_rule {
Link Here
|
| 377 |
} |
377 |
} |
| 378 |
|
378 |
|
| 379 |
my $memory_cache = Koha::Cache::Memory::Lite->get_instance; |
379 |
my $memory_cache = Koha::Cache::Memory::Lite->get_instance; |
| 380 |
my $cache_key = sprintf "CircRules:%s:%s:%s:%s", $rule_name // q{}, |
380 |
for my $k ( $memory_cache->all_keys ) { |
| 381 |
$categorycode // q{}, $branchcode // q{}, $itemtype // q{}; |
381 |
$memory_cache->clear_from_cache($k) if $k =~ m{^CircRules:}; |
| 382 |
|
382 |
} |
| 383 |
Koha::Cache::Memory::Lite->flush(); |
|
|
| 384 |
|
383 |
|
| 385 |
return $rule; |
384 |
return $rule; |
| 386 |
} |
385 |
} |
|
Lines 410-416
sub set_rules {
Link Here
|
| 410 |
push( @$rule_objects, $rule_object ); |
409 |
push( @$rule_objects, $rule_object ); |
| 411 |
} |
410 |
} |
| 412 |
|
411 |
|
| 413 |
Koha::Cache::Memory::Lite->flush(); |
|
|
| 414 |
return $rule_objects; |
412 |
return $rule_objects; |
| 415 |
} |
413 |
} |
| 416 |
|
414 |
|
| 417 |
- |
|
|