Lines 1186-1192
sub update_lastseen {
Link Here
|
1186 |
return $self unless $tracked_activities->{$activity}; |
1186 |
return $self unless $tracked_activities->{$activity}; |
1187 |
|
1187 |
|
1188 |
my $cache = Koha::Caches->get_instance(); |
1188 |
my $cache = Koha::Caches->get_instance(); |
1189 |
my $cache_key = "track_login_" . $self->userid; |
1189 |
my $cache_key = "track_activity_" . $self->borrowernumber; |
1190 |
my $cached = $cache->get_from_cache($cache_key); |
1190 |
my $cached = $cache->get_from_cache($cache_key); |
1191 |
my $now = dt_from_string(); |
1191 |
my $now = dt_from_string(); |
1192 |
return if $cached && $cached eq $now->ymd; |
1192 |
return if $cached && $cached eq $now->ymd; |