Package com.opensymphony.oscache.general

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


                          }
                          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

                          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

                          {
                            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

                        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

                        {
                          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

                      //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

                    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

                          //t.printElapsedTime("Page cache start");
                          RequestAnalyser.getRequestAnalyser().registerComponentStatistics("Page cache start", t.getElapsedTime());
                          logger.info("Flushing pageCache for content type def");

                          String contentTypeDefKey = "selectiveCacheUpdateNonApplicable_contentTypeDefinitionId_" + contentTypeDefinitionId;
                          cacheInstance.flushGroup(contentTypeDefKey);
                          //cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable_contentTypeDefinitionId_" + contentVO.getContentTypeDefinitionId());
                          //cacheInstance.flushGroup("content_" + contentVO.getId());
                          //System.out.println("Flushing:" + getPooledString(1, contentVO.getId()));
                          cacheInstance.flushGroup(getPooledString(1, new Integer(contentId)));
                          PageCacheHelper.getInstance().notify("content_" + contentId);
View Full Code Here

                          String contentTypeDefKey = "selectiveCacheUpdateNonApplicable_contentTypeDefinitionId_" + contentTypeDefinitionId;
                          cacheInstance.flushGroup(contentTypeDefKey);
                          //cacheInstance.flushGroup("selectiveCacheUpdateNonApplicable_contentTypeDefinitionId_" + contentVO.getContentTypeDefinitionId());
                          //cacheInstance.flushGroup("content_" + contentVO.getId());
                          //System.out.println("Flushing:" + getPooledString(1, contentVO.getId()));
                          cacheInstance.flushGroup(getPooledString(1, new Integer(contentId)));
                          PageCacheHelper.getInstance().notify("content_" + contentId);

                          ContentVersionVO oldContentVersionVO = null;
                          ContentVersionVO newContentVersionVO = null;
                         
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.