WebCache/WebCache.cs
/// <summary>
/// Deletes resource from the cache.
/// </summary>
/// <param name="url">URL.</param>
/// <returns>Byte array.</returns>
Deletes resource from the cache.
Deletes resource from the cache .
protected void DeleteResourceFromCache(string url)
        {
            logger?.LogInformation($"Deleting cache for {url}.");
            var cachePath = GetCachedFilePath(url);
            if (File.Exists(cachePath))
            {
                try
                {
                    File.Delete(cachePath);
                }
                catch (Exception ex)
                {
                    logger?.LogError(ex, $"Could not delete file: {cachePath}");
                }
            }
        }
protected void DeleteResourceFromCache ( string url ) { logger ? . LogInformation ( $" Deleting cache for  { url } . " ) ; var cachePath = GetCachedFilePath ( url ) ; if ( File . Exists ( cachePath ) ) { try { File . Delete ( cachePath ) ; } catch ( Exception ex ) { logger ? . LogError ( ex , $" Could not delete file:  { cachePath } " ) ; } } }
Deletes resource from the cache.
Deletes resource from the cache .
None
url
string
None