= Configuring MS4W and !MapCache for use in !OpenLayers 3 = This was spawned by an MS4W user asking how to setup OpenLayers3 for an MS4W !MapCache's WMS service ([http://osgeo-org.1560.x6.nabble.com/ms4w-3-1-4-mapcache-td5267121.html thread]): {{{ i active mapcache in ms4w 3.1.4 with it's introduction and run successfully image in tmp folder , in example is openlayers2 but i'd like use mapcache ms4w via openlayers 3 and my code is below new ol.layer.Tile({ title: 'Chabahar', source: new ol.source.TileWMS({ url: 'http://localhost:100/cgi-bin/mapserv.exe?map=D:/WEB_GIS/code_test/wms/HTML5Application/public_html/chabahar.map&', params: { 'LAYERS': 'chabahar', 'FORMAT': 'image/png', 'TILED': true }, serverType: 'mapserver' }) }) , but no image save in tmp directory }}} == Step 1: Initialize !MapCache Module * follow all of the steps in MS4W's [http://ms4w.com/README_INSTALL.html#g-mapcache-apache-module README] to initialize the !MapCache module, and confirm that tiles are being generated inside the folder: ''/ms4w/tmp/ms_tmp/cache/'' == Step 2: Install MS4W's OpenLayers3 Package == * if you haven't installed MS4W's OpenLayers 3 package (we'll use its sample WMS mapfile), please install: * save the OpenLayers zip locally from: http://ms4w.com/download.html#applications-packaged-for-ms4w * extract its contents to the root of your MS4W installation * restart Apache: as Administrator, execute: ''/ms4w/apache-restart.bat''