From e338457b9a4b6797f54aefd9c38cd9798c9c9f57 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 15 十月 2020 18:24:10 +0800
Subject: [PATCH] iqiyi专辑排除非正片

---
 src/main/java/com/yeshi/buwan/util/EHCacheManager.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/util/EHCacheManager.java b/src/main/java/com/yeshi/buwan/util/EHCacheManager.java
index f961d7a..9a12f92 100644
--- a/src/main/java/com/yeshi/buwan/util/EHCacheManager.java
+++ b/src/main/java/com/yeshi/buwan/util/EHCacheManager.java
@@ -17,8 +17,9 @@
      *
      * @param cacheName
      */
-    public void removeCacheByCacheName(String cacheName) {
-        ehCacheCacheManager.getCacheManager().removeCache(cacheName);
+    public void clearCacheByCacheName(String cacheName) {
+        Cache cache = ehCacheCacheManager.getCacheManager().getCache(cacheName);
+        cache.removeAll();
     }
 
     /**

--
Gitblit v1.8.0