private static function getTargetEndDate() { date_default_timezone_set('America/New_York'); $target = CShell::target(); $duration = CShell::duration(); $targetEndDate = mktime($target["hour"] + $duration["hour"], $target["minute"] + $duration["minute"], $target["second"], $target["month"], $target["day"], $target["year"]); return $targetEndDate; }
public static function checkCache() { if (CShell::caching() && ($page = self::isPageReady(PageTool::getVersion(PageTool::getPage(), CShell::pages()), CShell::target(), CShell::duration()))) { echo $page; return true; } return false; }