Skip to content

Commit

Permalink
Revert "Adds a task to purge cache"
Browse files Browse the repository at this point in the history
This reverts commit df4fec4.
  • Loading branch information
scampower3 committed Mar 4, 2024
1 parent df4fec4 commit 50269a4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 82 deletions.
65 changes: 0 additions & 65 deletions Jellyfin.Plugin.Tvdb/ScheduledTasks/PurgeCacheTask.cs

This file was deleted.

17 changes: 0 additions & 17 deletions Jellyfin.Plugin.Tvdb/TvdbClientManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,23 +501,6 @@ public async Task<IReadOnlyList<ArtworkType>> GetArtworkTypeAsync(CancellationTo
}
}

/// <summary>
/// Purge the cache.
/// </summary>
/// <returns>True if success else false.</returns>
public bool PurgeCache()
{
if (_memoryCache is MemoryCache memoryCache)
{
memoryCache.Compact(1);
return true;
}
else
{
return false;
}
}

/// <summary>
/// Create an independent ServiceProvider because registering HttpClients directly into Jellyfin
/// causes issues upstream.
Expand Down

0 comments on commit 50269a4

Please sign in to comment.