public function GetTileModificationDate($mapDefIdStr, $groupName, $scaleIndex, $row, $col) { $tileCacheName = str_replace("Library://", "", $mapDefIdStr); $tileCacheName = str_replace(".MapDefinition", "", $tileCacheName); $tileCacheName = str_replace("/", "_", $tileCacheName); $path = sprintf("%s/%s/S%s/%s/%s/%s/%s_%s.%s", $this->app->config("MapGuide.PhysicalTilePath"), $tileCacheName, $scaleIndex, $groupName, MgTileServiceController::GetFolderName("R", $row), MgTileServiceController::GetFolderName("C", $col), MgTileServiceController::GetTileIndexString($row), MgTileServiceController::GetTileIndexString($col), $this->app->config("MapGuide.TileImageFormat")); //var_dump($path); //die; $path = str_replace("/", DIRECTORY_SEPARATOR, $path); if (file_exists($path)) { return filemtime($path); } else { //$this->app->response->header("X-Debug-Message", "Could not fetch mtime of $path. File does not exist"); return false; } }