title: Spring Cache is not cleared on production
body: <p>I am using spring cache mechanism with SimpleCacheManager/ConcurrentMapCache. </p>
  
  <p>And I am using a web service to clear the cache and the following is the code . </p>
  
  <pre><code>for(String cacheName : cacheManager.getCacheNames()){
          Cache cache =cacheManager.getCache(cacheName);
          if(cache!=null){
              cache.clear();
          }
      }
  </code></pre>
  
  <p>When I called this code from a Rest webservice on local vm , I can see its clearing the cache and can see the changes that we done in the database with other service , However on the production environment , the webservice returning 200 status in the logs. but it still shows the old data. 
  On production we have 2 servers
  We have to restart our application to refresh the cache and get the latest data from the database. </p>