Package com.opensymphony.oscache.general

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


                    }
                    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

                    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

                              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

                          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

                          {
                            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

                            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

                        }
                       
                        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

                      try
                      {
                        String contentId = sentContentId;
                        if(contentId == null || contentId.equals(""))
                          contentId = ""+ContentVersionController.getContentVersionController().getContentIdForContentVersion(new Integer(entityId));
                      cacheInstance.flushGroup("content_" + contentId);
                        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");
View Full Code Here

                          {
                            SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithMetaInfoContentId(new Integer(contentId));
                            //t.printElapsedTime("childPagesCache getSiteNodeVOWithMetaInfoContentId");
                            if(siteNodeVO != null)
                            {
                              cacheInstance.flushGroup("siteNode_" + siteNodeVO.getId());
                              cacheInstance.flushGroup("siteNode_" + siteNodeVO.getParentSiteNodeId());
                            }
                          }
                          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.