Examples of flushGroup()


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

                      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

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

                          {
                            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

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

                            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)
                          {
                            logger.error("Did not find a sitenode with this meta info:" + contentId);
View Full Code Here

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

                          }
                          catch (Exception e2)
                          {
                            logger.error("Did not find a sitenode with this meta info:" + contentId);
                        }
                          cacheInstance.flushGroup("content_" + contentId);
                          cacheInstance.flushGroup("contentVersion_" + entityId);
                          cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable");
                          //t.printElapsedTime("childPagesCache flush done...");
                          logger.info("Clearing childPagesCache for content:" + "content_" + contentId);
                        }
View Full Code Here

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

                          catch (Exception e2)
                          {
                            logger.error("Did not find a sitenode with this meta info:" + contentId);
                        }
                          cacheInstance.flushGroup("content_" + contentId);
                          cacheInstance.flushGroup("contentVersion_" + entityId);
                          cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable");
                          //t.printElapsedTime("childPagesCache flush done...");
                          logger.info("Clearing childPagesCache for content:" + "content_" + contentId);
                        }
                      }
View Full Code Here

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

                          {
                            logger.error("Did not find a sitenode with this meta info:" + contentId);
                        }
                          cacheInstance.flushGroup("content_" + contentId);
                          cacheInstance.flushGroup("contentVersion_" + entityId);
                          cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable");
                          //t.printElapsedTime("childPagesCache flush done...");
                          logger.info("Clearing childPagesCache for content:" + "content_" + contentId);
                        }
                      }
                      catch (Exception e2)
View Full Code Here

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

                        try
                        {
                          ContentVO contentVO = ContentController.getContentController().getContentVOWithId(new Integer(contentId));
                          String contentTypeDefinitionId = "" + contentVO.getContentTypeDefinitionId();
                          cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable_contentTypeDefinitionId_" + contentTypeDefinitionId);
                          cacheInstance.putInCache("recacheMark_" + contentTypeDefinitionId, "" + System.currentTimeMillis());
                          cacheInstance.putInCache("recacheMark", "" + System.currentTimeMillis());
                        }
                        catch (Exception e2)
                        {
View Full Code Here

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

                        {
                          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);
                      }
                      catch (Exception e2)
                      {
                        logger.warn("Flushing all as it was a missing entity - was probably a delete:" + e2.getMessage());
View Full Code Here

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

                      //t.printElapsedTime("matchingContentsCache");
                    }
                    else
                    {
                      //t.printElapsedTime("Before");
                      cacheInstance.flushGroup("contentVersion_" + entityId);
                      //if(!cacheName.equals("contentCache") && !cacheName.equals("contentVersionCache") && !cacheName.equals("contentAttributeCache") && !cacheName.equals("contentVersionIdCache") && !cacheName.equals("contentCategoryCache") && !cacheName.equals("metaInfoContentAttributeCache"))
                        cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable");
                      logger.info("clearing " + e.getKey() + " with selectiveCacheUpdateNonApplicable");
                      //t.printElapsedTime("clearing " + e.getKey() + " with selectiveCacheUpdateNonApplicable");
                    }
View Full Code Here

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

                    else
                    {
                      //t.printElapsedTime("Before");
                      cacheInstance.flushGroup("contentVersion_" + entityId);
                      //if(!cacheName.equals("contentCache") && !cacheName.equals("contentVersionCache") && !cacheName.equals("contentAttributeCache") && !cacheName.equals("contentVersionIdCache") && !cacheName.equals("contentCategoryCache") && !cacheName.equals("metaInfoContentAttributeCache"))
                        cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable");
                      logger.info("clearing " + e.getKey() + " with selectiveCacheUpdateNonApplicable");
                      //t.printElapsedTime("clearing " + e.getKey() + " with selectiveCacheUpdateNonApplicable");
                    }
                    logger.info("clearing " + e.getKey() + " with group " + "contentVersion_" + entityId);
                 
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.