Examples of flushGroup()


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

                              cacheInstance.flushGroup("" + repositoryId);
                              logger.info("Clearing componentPropertyCacheRepoGroups for repo:" + repositoryId);
                            }
                            if(parentSiteNodeId != null)
                            {
                              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("Clearing componentPropertyCacheRepoGroups for repo:" + repositoryId);
                            }
                            if(parentSiteNodeId != null)
                            {
                              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()

                          Integer repositoryId = snVO.getRepositoryId();
                          Integer parentSiteNodeId = snVO.getParentSiteNodeId();
 
                          if(cacheName.equals("componentPropertyCacheRepoGroups") || cacheName.equals("componentPropertyVersionIdCacheRepoGroups"))
                          {
                            cacheInstance.flushGroup("" + repositoryId);
                            logger.info("Clearing componentPropertyCacheRepoGroups for repo:" + repositoryId);
                          }
                          if(parentSiteNodeId != null)
                          {
                            cacheInstance.flushGroup("siteNode_" + parentSiteNodeId);
View Full Code Here

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

                            cacheInstance.flushGroup("" + repositoryId);
                            logger.info("Clearing componentPropertyCacheRepoGroups for repo:" + repositoryId);
                          }
                          if(parentSiteNodeId != null)
                          {
                            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("Clearing componentPropertyCacheRepoGroups for repo:" + repositoryId);
                          }
                          if(parentSiteNodeId != null)
                          {
                            cacheInstance.flushGroup("siteNode_" + parentSiteNodeId);
                            cacheInstance.flushGroup("" + parentSiteNodeId);
                            cacheInstance.flushEntry("" + parentSiteNodeId);
                            logger.info("Clearing for:" + parentSiteNodeId);
                          }
                        }
                      }
View Full Code Here

Examples of java.util.Map.flushGroup()

                                        //System.out.println("newComponentPropertyHash:" + newComponentPropertyHash);
                                        if(oldComponentPropertyHash.intValue() != newComponentPropertyHash)
                                        {
                                          //System.out.println("Yes - clearing - must have changed something important:" + usedEntity);
                                          //cacheInstance.flushGroup(usedEntity);
                                          cacheInstance.flushGroup(getPooledString(usedEntity.hashCode()));
                                          //clearFileCacheForGroup(cacheInstance, usedEntity);
                                        }
                                        else
                                        {
                                          //System.out.println("Flushing content_" + currentPageMetaInfoContentId + "_ComponentStructure just to catch page itself");
View Full Code Here

Examples of java.util.Map.flushGroup()

                                          //System.out.println("Flushing content_" + currentPageMetaInfoContentId + "_ComponentStructure just to catch page itself");
                                          //cacheInstance.flushGroup("content_" + currentPageMetaInfoContentId + "_ComponentStructure");
                                          //System.out.println("Flushing content_" + contentId + "_ComponentStructure just to catch page itself");
                                          String componentStructureKey = "content_" + contentId + "_ComponentStructure";
                                          //cacheInstance.flushGroup(componentStructureKey);
                                          cacheInstance.flushGroup(getPooledString(componentStructureKey.hashCode()));
                                          cacheInstance.flushGroup(getPooledString(usedEntity.hashCode()));
                                        }
                                       
                                      }
                                      else if(usedEntity.startsWith("content_" + contentId + "_ComponentStructure:"))
View Full Code Here

Examples of java.util.Map.flushGroup()

                                          //cacheInstance.flushGroup("content_" + currentPageMetaInfoContentId + "_ComponentStructure");
                                          //System.out.println("Flushing content_" + contentId + "_ComponentStructure just to catch page itself");
                                          String componentStructureKey = "content_" + contentId + "_ComponentStructure";
                                          //cacheInstance.flushGroup(componentStructureKey);
                                          cacheInstance.flushGroup(getPooledString(componentStructureKey.hashCode()));
                                          cacheInstance.flushGroup(getPooledString(usedEntity.hashCode()));
                                        }
                                       
                                      }
                                      else if(usedEntity.startsWith("content_" + contentId + "_ComponentStructure:"))
                                      {
View Full Code Here

Examples of java.util.Map.flushGroup()

                                        //System.out.println("oldComponentPropertyHash:" + oldComponentPropertyHash);
                                        //System.out.println("newComponentPropertyHash:" + newComponentPropertyHash);
                                        if(oldComponentPropertyHash.intValue() != newComponentPropertyHash)
                                        {
                                          //System.out.println("Yes - clearing - must have changed order or added/subtracted components:" + usedEntity);
                                          cacheInstance.flushGroup(getPooledString(usedEntity.hashCode()));
                                          //cacheInstance.flushGroup(usedEntity);
                                        }
                                      }
   
                                    }
View Full Code Here

Examples of java.util.Map.flushGroup()

                                   
                                    try
                                    {
                                      String attributeKey = "content_" + contentId + "_" + changedAttributeName;
                                      //cacheInstance.flushGroup(attributeKey);
                                      cacheInstance.flushGroup(getPooledString(attributeKey.hashCode()));
                                      logger.warn("Cleared pageCache for " + getPooledString(attributeKey.hashCode()));
                                    }
                                  catch(Exception ex2)
                                  {
                                    logger.error("Got error trying to flushGroup 2:" + ex2.getMessage());
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.