|
Lines 43-48
my $prefs = Koha::Config::SysPrefs->search();
Link Here
|
| 43 |
while (my $pref = $prefs->next) { |
43 |
while (my $pref = $prefs->next) { |
| 44 |
my $var = lc $pref->variable; |
44 |
my $var = lc $pref->variable; |
| 45 |
my $cached_var = $syspref_cache->get_from_cache("syspref_$var"); |
45 |
my $cached_var = $syspref_cache->get_from_cache("syspref_$var"); |
| 46 |
next unless $cached_var; |
46 |
next unless defined $cached_var; #If not defined in cache we will fetch from DB so this case is OK |
| 47 |
print "$var: value in cache is $cached_var and value in db is ".$pref->value,"\n" unless $cached_var eq $pref->value; |
47 |
print "$var: value in cache is $cached_var and value in db is ".$pref->value,"\n" unless $cached_var eq $pref->value; |
| 48 |
} |
48 |
} |
| 49 |
- |
|
|