mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Implemented cache for QualityDefinitionService to reduce db calls.
This commit is contained in:
parent
45b1067d44
commit
0187df38ec
2 changed files with 19 additions and 4 deletions
|
@ -100,6 +100,9 @@ namespace NzbDrone.Core.Jobs
|
|||
|
||||
public void Handle(CommandExecutedEvent message)
|
||||
{
|
||||
if (message.Command.GetType().Name == "BroadcastSignalRMessage")
|
||||
return;
|
||||
|
||||
var scheduledTask = _scheduledTaskRepository.All().SingleOrDefault(c => c.TypeName == message.Command.GetType().FullName);
|
||||
|
||||
if (scheduledTask != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue