<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thank you all for the responses!<br>
<br>
I am using Mapserver as cgi. Main purpose is to serve data through wms.
The options mentioned are therefor not usable for me.<br>
<br>
Is there anyone out there that knows how to implement some sort of
caching on webserver level that can interpret the request and say ah, I
allready have this image on disk! and then returns the image instead of
firing the request to mapserver again?<br>
<pre wrap="">
Piero Cavalieri wrote:

Maybe your IMAGEPATH and IMAGEURL options are not correct. However images in temp dir are not used by Mapserver for caching. The cgi is stateless, and u have to find some other way to have chaching, I think.
</pre>
<small><font face="Courier New, Courier, monospace"><br>
Richard Duivenvoorde wrote:</font></small><br>
<br>
<small><font face="Courier New, Courier, monospace">it depends how you
use mapserver:
- as a cgi
- using mapserver/php script (mapscript)
<br>
Using it as a cgi (as you do), there will be no temporary images: upon
creating the map-image the image is streamed to the client.
<br>
Using mapscript, mapscript generates an image and a page in which there
is an url to THIS image. This url is unique on every request: no
caching either.
Caching is rather difficult with current clients: every url/bbox is
almost unique.
<br>
IF the extent, and everything is always the same (as you say), you
could try to arrange something with a webproxy/cache (in front of
mapserver), this will then serve a cached version of your image. But
this has not something to do with mapserver(s temp directory).
<br>
OR you should use a tiling server, and a client which can use that.
With tiles your are caching.
<br>
<br>
Volkan Ulukut wrote:</font></small><br>
<blockquote cite="mid:20071205132445.VIGU2282.fep01.ttnet.net.tr@volkan"
 type="cite"><small><font face="Courier New, Courier, monospace">I'm
using ka-map for caching and it works perfect. Ka-map uses mapscript to<br>
create tiles of the image you request and if that tile is created
before it<br>
used the cached image so you don't have to recreate every image. You
only<br>
create once which can also be done by precaching so your users will<br>
experience a very fast service.</font></small><br>
</blockquote>
</body>
</html>