Examples of flushGroup()


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

    }
   
    public static void clearCache(){
    DotCacheAdministrator cache = CacheLocator.getCacheAdministrator();
      //clear the cache
      cache.flushGroup(getPrimaryGroup());
  }
  public static String[] getGroups() {
      String[] groups = {getPrimaryGroup()};
      return groups;
    }
View Full Code Here

Examples of com.opensymphony.oscache.base.Cache.flushGroup()

        if (group != null) // We're flushing a group
         {
            if (cacheScope >= 0) {
                Cache cache = admin.getCache((HttpServletRequest) pageContext.getRequest(), cacheScope);
                cache.flushGroup(group);
            } else {
                throw new JspTagException("A cache group was specified for flushing, but the scope wasn't supplied or was invalid");
            }
        } else if (pattern != null) // We're flushing keys which contain the pattern
         {
View Full Code Here

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

                      //clearFileCacheForGroup(cacheInstance, "selectiveCacheUpdateNonApplicable");
                    }
                    else
                    {
                      cacheInstance.flushEntry("" + entityId);
                      cacheInstance.flushGroup("" + entityId);
                      cacheInstance.flushGroup("siteNode_" + entityId);
                      cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable");
                   
                      if(cacheName.equals("childSiteNodesCache") || cacheName.equals("childPagesCache") || cacheName.equals("siteNodeCache") || cacheName.equals("componentPropertyCacheRepoGroups") || cacheName.equals("componentPropertyVersionIdCacheRepoGroups"))
                      {
View Full Code Here

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

                    }
                    else
                    {
                      cacheInstance.flushEntry("" + entityId);
                      cacheInstance.flushGroup("" + entityId);
                      cacheInstance.flushGroup("siteNode_" + entityId);
                      cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable");
                   
                      if(cacheName.equals("childSiteNodesCache") || cacheName.equals("childPagesCache") || cacheName.equals("siteNodeCache") || cacheName.equals("componentPropertyCacheRepoGroups") || cacheName.equals("componentPropertyVersionIdCacheRepoGroups"))
                      {
                        logger.info("Flushing parent also");
View Full Code Here

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

                    else
                    {
                      cacheInstance.flushEntry("" + entityId);
                      cacheInstance.flushGroup("" + entityId);
                      cacheInstance.flushGroup("siteNode_" + entityId);
                      cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable");
                   
                      if(cacheName.equals("childSiteNodesCache") || cacheName.equals("childPagesCache") || cacheName.equals("siteNodeCache") || cacheName.equals("componentPropertyCacheRepoGroups") || cacheName.equals("componentPropertyVersionIdCacheRepoGroups"))
                      {
                        logger.info("Flushing parent also");
                       
View Full Code Here

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

                              parentSiteNodeId = "" + snVO.getParentSiteNodeId();
                            }
                          }
                          if(cacheName.equals("componentPropertyCacheRepoGroups") || cacheName.equals("componentPropertyVersionIdCacheRepoGroups"))
                          {
                            cacheInstance.flushGroup("" + repositoryId);
                            logger.info("Clearing componentPropertyCacheRepoGroups for repo:" + repositoryId);
                          }

                          if(parentSiteNodeId != null && !parentSiteNodeId.equals(""))
                          {
View Full Code Here

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

                          if(parentSiteNodeId != null && !parentSiteNodeId.equals(""))
                          {
                            logger.info("Flushing " + "" + entityId);
                            logger.info("Flushing " + "siteNode_" + entityId);

                            cacheInstance.flushGroup("siteNode_" + parentSiteNodeId);
                            cacheInstance.flushGroup("" + parentSiteNodeId);
                            cacheInstance.flushEntry("" + parentSiteNodeId);
                            logger.info("Clearing for:" + parentSiteNodeId);
                          }
                        }
View Full Code Here

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

                          {
                            logger.info("Flushing " + "" + entityId);
                            logger.info("Flushing " + "siteNode_" + entityId);

                            cacheInstance.flushGroup("siteNode_" + parentSiteNodeId);
                            cacheInstance.flushGroup("" + parentSiteNodeId);
                            cacheInstance.flushEntry("" + parentSiteNodeId);
                            logger.info("Clearing for:" + parentSiteNodeId);
                          }
                        }
                        catch(SystemException se)
View Full Code Here

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

                            contentId = "" + ContentVersionController.getContentVersionController().getContentIdForContentVersion(new Integer(entityId));
                          ContentVO contentVO = ContentController.getContentController().getContentVOWithId(new Integer(contentId));
                          repositoryId = "" + contentVO.getRepositoryId();
                        }
                       
                        cacheInstance.flushGroup("" + repositoryId);
                        //t2.printElapsedTime("3");
                        if(cacheName.equals("componentPropertyVersionIdCacheRepoGroups"))
                          cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable");
                        //t2.printElapsedTime("4");
                        logger.info("Clearing componentPropertyCacheRepoGroups for repo:" +repositoryId);
View Full Code Here

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

                        }
                       
                        cacheInstance.flushGroup("" + repositoryId);
                        //t2.printElapsedTime("3");
                        if(cacheName.equals("componentPropertyVersionIdCacheRepoGroups"))
                          cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable");
                        //t2.printElapsedTime("4");
                        logger.info("Clearing componentPropertyCacheRepoGroups for repo:" +repositoryId);
                      }
                      catch (Exception e2)
                      {
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.