Examples of DotResourceCache


Examples of com.dotmarketing.velocity.DotResourceCache

    }
    String filePath = folderPath + identifier.getInode() + "." + Config.getStringProperty("VELOCITY_HTMLPAGE_EXTENSION");
    velocityRootPath += java.io.File.separator;
    java.io.File f  = new java.io.File(velocityRootPath + filePath);
    f.delete();
    DotResourceCache vc = CacheLocator.getVeloctyResourceCache();
    vc.remove(ResourceManager.RESOURCE_TEMPLATE + filePath );
    CacheLocator.getHTMLPageCache().remove((HTMLPage) htmlPage);
  }
View Full Code Here

Examples of com.dotmarketing.velocity.DotResourceCache

    }
    for(Long langId : langs) {
        String filePath= folderPath + identifier.getInode() + "_" + langId + "." + Config.getStringProperty("VELOCITY_CONTENT_EXTENSION");
        java.io.File f= new java.io.File(velocityRootPath + filePath);
        f.delete();
        DotResourceCache vc= CacheLocator.getVeloctyResourceCache();
            vc.remove(ResourceManager.RESOURCE_TEMPLATE + filePath );
    }
        List<Field> fields= FieldsCache.getFieldsByStructureInode(asset.getStructureInode());
        for (Field field : fields) {
      try {
        FieldServices.invalidate(field.getInode(), asset.getInode(), EDIT_MODE);
View Full Code Here

Examples of com.dotmarketing.velocity.DotResourceCache

    out.write(data);

    out.flush();
    out.close();
    tmpOut.close();
    DotResourceCache vc= CacheLocator.getVeloctyResourceCache();
        vc.remove(ResourceManager.RESOURCE_TEMPLATE + filePath );
  }
View Full Code Here

Examples of com.dotmarketing.velocity.DotResourceCache

        }
        velocityRootPath += java.io.File.separator;
        String filePath = folderPath + identifier.getInode() + "." + Config.getStringProperty("VELOCITY_CONTAINER_EXTENSION");
        java.io.File f  = new java.io.File(velocityRootPath + filePath);
        f.delete();
        DotResourceCache vc = CacheLocator.getVeloctyResourceCache();
        vc.remove(ResourceManager.RESOURCE_TEMPLATE + filePath );
    }
View Full Code Here

Examples of com.dotmarketing.velocity.DotResourceCache

    String folderPath = "working/";
    String filePath=folderPath + structure.getInode() + "." + Config.getStringProperty("VELOCITY_STRUCTURE_EXTENSION");
    String absolutPath = FileUtil.getRealPath("/WEB-INF/velocity/" +filePath);
    java.io.File f = new java.io.File(absolutPath);
    f.delete();
    DotResourceCache vc = CacheLocator.getVeloctyResourceCache();
        vc.remove(ResourceManager.RESOURCE_TEMPLATE + filePath );
  }
View Full Code Here

Examples of com.dotmarketing.velocity.DotResourceCache

        String folderPath = (!EDIT_MODE) ? "live" + java.io.File.separator: "working" + java.io.File.separator;
        String filePath=folderPath + identifier.getInode() + "." + Config.getStringProperty("VELOCITY_TEMPLATE_EXTENSION");
        java.io.File f  = new java.io.File(velocityRootPath + filePath);
        f.delete();
        DotResourceCache vc = CacheLocator.getVeloctyResourceCache();
        vc.remove(ResourceManager.RESOURCE_TEMPLATE + filePath );
    }   
View Full Code Here

Examples of com.dotmarketing.velocity.DotResourceCache

        velocityRootPath += java.io.File.separator;
        String folderPath = (!EDIT_MODE) ? "live" + java.io.File.separator: "working" + java.io.File.separator;
        String filePath=folderPath + contentInode + "_" + fieldInode + "." + Config.getStringProperty("VELOCITY_FIELD_EXTENSION");
        java.io.File f  = new java.io.File(velocityRootPath + filePath);
        f.delete();
        DotResourceCache vc = CacheLocator.getVeloctyResourceCache();
        vc.remove(ResourceManager.RESOURCE_TEMPLATE + filePath );
    }
View Full Code Here

Examples of com.dotmarketing.velocity.DotResourceCache

    }
    String filePath = folderPath + host.getIdentifier() + "." + Config.getStringProperty("VELOCITY_HOST_EXTENSION");
    velocityRootPath += java.io.File.separator;
    java.io.File f  = new java.io.File(velocityRootPath + filePath);
    f.delete();
    DotResourceCache vc = CacheLocator.getVeloctyResourceCache();
    vc.remove(ResourceManager.RESOURCE_TEMPLATE + filePath );
  }
View Full Code Here

Examples of com.dotmarketing.velocity.DotResourceCache

    }
  }
 
  private void invalidateCacheFromCluster(String k){
    boolean flushMenus = false;
    DotResourceCache vc = CacheLocator.getVeloctyResourceCache();
    String menuGroup = vc.getMenuGroup();

    int i = k.lastIndexOf(":");
    if(i > 0){
      String key = k.substring(0, i);
      String group = k.substring(i+1, k.length());
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.