Index: htdocs/precache2.php =================================================================== RCS file: /cvs/maptools/cvsroot/ka-map/htdocs/precache2.php,v retrieving revision 1.5 diff -u -r1.5 precache2.php --- htdocs/precache2.php 17 May 2006 19:38:14 -0000 1.5 +++ htdocs/precache2.php 2 Jul 2006 12:38:50 -0000 @@ -80,11 +80,19 @@ $orig_umask = umask(0); /* create the main cache directory if necessary */ -if(!@is_dir($szMapCacheDir)) - makeDirs($szMapCacheDir); +if(!@is_dir($szBaseWebCache)) + makeDirs($szBaseWebCache); $inchesPerUnit = array(1, 12, 63360.0, 39.3701, 39370.1, 4374754); foreach($aszMapFiles as $mapKey => $mapParams) { + + $szMapCacheDir = $szBaseCacheDir.$mapParams['title']; + + +/* create the main cache directory if necessary */ + if(!@is_dir($szMapCacheDir)) + makeDirs($szMapCacheDir); + $oMap = ms_newMapObj($mapParams['path']); $nLayers = $oMap->numlayers; $mapWidth = $metaWidth * $tileWidth;