1 23 24 package org.infoglue.deliver.util; 25 26 import org.apache.log4j.Logger; 27 import org.infoglue.cms.exception.SystemException; 28 import org.infoglue.cms.util.CmsPropertyHandler; 29 import org.infoglue.deliver.applications.databeans.DatabaseWrapper; 30 31 32 public class RequestCentricCachePopulator 33 { 34 public final static Logger logger = Logger.getLogger(RequestCentricCachePopulator.class.getName()); 35 36 43 44 public void recache(DatabaseWrapper dbWrapper, Integer siteNodeId) throws SystemException, Exception 45 { 46 logger.info("recache starting.."); 47 81 HttpHelper helper = new HttpHelper(); 82 String recacheUrl = CmsPropertyHandler.getRecacheUrl() + "?siteNodeId=" + siteNodeId + "&refresh=true&isRecacheCall=true"; 83 String response = helper.getUrlContent(recacheUrl); 85 87 logger.info("recache stopped.."); 88 } 89 90 } | Popular Tags |