Implemented cache for QualityDefinitionService to reduce db calls.

This commit is contained in:
Taloth Saldono 2014-05-03 00:26:55 +02:00
parent 45b1067d44
commit 0187df38ec
2 changed files with 19 additions and 4 deletions

View file

@ -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)