Package com.dotmarketing.business

Examples of com.dotmarketing.business.DotCacheAdministrator


    int after = Integer.parseInt(result.get(0).get("count"));
    return before - after;
  }

  public static void flushCache(){
    DotCacheAdministrator cache = CacheLocator.getCacheAdministrator();
    cache.flushAll();
  }
View Full Code Here


      return;
    }
    long start = System.currentTimeMillis();
    Logger.info(this.getClass(), "Running CleanBlockCacheScheduledTask");
    BlockDirectiveCache bdc= CacheLocator.getBlockDirectiveCache();
    DotCacheAdministrator dca = CacheLocator.getCacheAdministrator();
    Set<String> keys= dca.getKeys(bdc.getPrimaryGroup());
    long x = 0;
    for(String key : keys){
      BlockDirectiveCacheObject bo = bdc.get(key);
      if(bo != null && bo.getCreated() + (bo.getTtl() * 1000) < System.currentTimeMillis()) {
        bdc.remove(key);
View Full Code Here

            workflow.setContentlet(contentlet);
            wapi.fireWorkflowPostCheckin(workflow);
        }

        // DOTCMS-7290
        DotCacheAdministrator cache = CacheLocator.getCacheAdministrator();
        Identifier contIdent = APILocator.getIdentifierAPI().find(contentlet);
        Host host = APILocator.getHostAPI().find(contIdent.getHostId(), user, respectFrontendRoles);
        cache.remove(LiveCache.getPrimaryGroup() + host.getIdentifier() + ":" + contIdent.getParentPath()+contIdent.getAssetName(),
            LiveCache.getPrimaryGroup() + "_" + host.getIdentifier());


        String velocityResourcePath = "working/" + contentlet.getIdentifier() + "_" + contentlet.getLanguageId() + "." + Config.getStringProperty("VELOCITY_CONTENT_EXTENSION","content");
        if(CacheLocator.getVeloctyResourceCache().isMiss(velocityResourcePath))
View Full Code Here

TOP

Related Classes of com.dotmarketing.business.DotCacheAdministrator

Copyright © 2018 www.massapicom. 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.