-
Keeper.pm
216 217 57 57 $self->{db_client_encoding} = $local_state->{attributes}{db_client_encoding} ? $local_state->db_client_encoding() : ''; 58 58 $self->{db_enable_utf8} = $local_state->{attributes}{db_enable_utf8} ? $local_state->db_enable_utf8() : 0; 59 59 60 $self->{serialize_with} = $local_state->{serialize_with}; 61 60 62 $self->{data_dir} = $self->{data_directory} = $local_state->data_directory(); 61 63 $self->{images_dir} = $self->{images_directory} = $local_state->images_directory(); 62 64 $self->{binary_dir} = $self->{binary_directory} = $local_state->binary_directory(); … … 95 97 96 98 foreach my $attribute ( qw( 97 99 db_host db_name db_user db_password db_port 100 serialize_with 98 101 99 102 data_directory data_dir 100 103 images_directory images_dir … … 313 316 $self->set_object_to_cache($item, 30, $opts) if ($opts->{with_cache}); 314 317 $total++; 315 318 if ( exists $item->{$hash_by} && defined $item->{$hash_by} ) { 316 $items{$item->{$hash_by}} = $item; 319 $items{$item->{$hash_by}} = $item; 317 320 } else { 318 $log->warning( "Can not HASH BY parameter [$hash_by]. It doesn't exists in row or the field is empty"); 321 $log->warning( "Can not HASH BY parameter [$hash_by]. It doesn't exists in row or the field is empty"); 319 322 } 320 323 } 321 324 }