Examples of flushAll()


Examples of com.dotmarketing.business.DotCacheAdministrator.flushAll()

    return before - after;
  }

  public static void flushCache(){
    DotCacheAdministrator cache = CacheLocator.getCacheAdministrator();
    cache.flushAll();
  }

  public static void deleteAssets(List<String> inodes, String tableName, int offset){
    if(inodes == null || inodes.size() < 1){
      return;
View Full Code Here

Examples of com.opensymphony.oscache.general.GeneralCacheAdministrator.flushAll()

                        logger.info("Clearing assetUrlCacheWithGroups for content:" + "content_" + contentId);
                      }
                      catch (Exception e2)
                      {
                        logger.warn("Flushing assetUrlCacheWithGroups as it was a missing entity - was probably a delete");
                        cacheInstance.flushAll();
                    }
                      //t.printElapsedTime("assetUrlCacheWithGroups");
                    }
                    else if(cacheName.equals("childPagesCache") || cacheName.equals("childSiteNodesCache"))
                    {
View Full Code Here

Examples of com.opensymphony.oscache.general.GeneralCacheAdministrator.flushAll()

                        }
                      }
                      catch (Exception e2)
                      {
                        logger.warn("Flushing childPagesCache as it was a missing entity - was probably a delete");
                        cacheInstance.flushAll();
                    }
                      //t.printElapsedTime("childPagesCache");
                    }
                    else if(cacheName.equals("matchingContentsCache"))
                    {
View Full Code Here

Examples of com.opensymphony.oscache.general.GeneralCacheAdministrator.flushAll()

                          cacheInstance.putInCache("recacheMark", "" + System.currentTimeMillis());
                        }
                        catch (Exception e2)
                        {
                          logger.warn("Flushing all as it was a missing entity - was probably a delete:" + e2.getMessage());
                          cacheInstance.flushAll();
                      }
                       
                        cacheInstance.flushGroup("content_" + contentId);
                        logger.info("Clearing assetUrlCacheWithGroups for content:" + "content_" + contentId);
                      }
View Full Code Here

Examples of com.opensymphony.oscache.general.GeneralCacheAdministrator.flushAll()

                        logger.info("Clearing assetUrlCacheWithGroups for content:" + "content_" + contentId);
                      }
                      catch (Exception e2)
                      {
                        logger.warn("Flushing all as it was a missing entity - was probably a delete:" + e2.getMessage());
                        cacheInstance.flushAll();
                    }
                      //t.printElapsedTime("matchingContentsCache");
                    }
                    else
                    {
View Full Code Here

Examples of com.opensymphony.oscache.general.GeneralCacheAdministrator.flushAll()

                    return;
                  }
             
              RequestAnalyser.getRequestAnalyser().registerComponentStatistics("Getting lock for flushing " + cacheName, t.getElapsedTime());
                  */
            cacheInstance.flushAll();
              cacheInstance.destroy();

              //RequestAnalyser.getRequestAnalyser().registerComponentStatistics("Flushing " + cacheName, t.getElapsedTime());
          }
            /*
 
View Full Code Here

Examples of com.opensymphony.oscache.general.GeneralCacheAdministrator.flushAll()

                    return;
                  }

              RequestAnalyser.getRequestAnalyser().registerComponentStatistics("Getting lock for flushing " + cacheName, t.getElapsedTime());
            */
            cacheInstance.flushAll();
           
              //RequestAnalyser.getRequestAnalyser().registerComponentStatistics("Flushing " + cacheName, t.getElapsedTime());
          }
            /*
                finally
View Full Code Here

Examples of com.opensymphony.oscache.general.GeneralCacheAdministrator.flushAll()

            else
            {
                GeneralCacheAdministrator cacheInstance = (GeneralCacheAdministrator)e.getValue();
              synchronized(cacheInstance)
              {
                  cacheInstance.flushAll();
              }
            }
            logger.info("Cleared cache:" + e.getKey());
           
              i.remove();
View Full Code Here

Examples of com.opensymphony.oscache.web.ServletCacheAdministrator.flushAll()

    public final static Logger logger = Logger.getLogger(OSCacheUtility.class.getName());

  public static void setServletCacheParams(ServletContext context)
  {
    ServletCacheAdministrator servletCacheAdministrator = ServletCacheAdministrator.getInstance(context);
    servletCacheAdministrator.flushAll();
    Cache cache = servletCacheAdministrator.getAppScopeCache(context);
   
    servletCacheAdministrator.setAlgorithmClass("com.opensymphony.oscache.base.algorithm.ImprovedLRUCache");
   
    int capacity = 5000;
View Full Code Here

Examples of com.opensymphony.oscache.web.ServletCacheAdministrator.flushAll()

      String returnValue = handleAccess(this.getRequest());
      if(returnValue != null)
        return returnValue;

    ServletCacheAdministrator servletCacheAdministrator = ServletCacheAdministrator.getInstance(ActionContext.getServletContext());
    servletCacheAdministrator.flushAll();
    Cache cache = servletCacheAdministrator.getAppScopeCache(ActionContext.getServletContext());
   
    OSCacheUtility.clear(cache);
   
    return "cleared";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.