You can read a mapfile in PHP suck it's contents into a string (outside
mapscript) and store 
that in your cache once. Then you can pull that string from the cache
when  needed an 
instantiate a mapObj from it. About the best you can do at the moment I
think.

Steve

>>> On 10/26/2009 at 11:03 AM, in message
<2a37f67a0910260903g29482f00j136f80cd3f8d6...@mail.gmail.com>, Pavel
Iacovlev
<iacovlev.pa...@gmail.com> wrote:
> I have a script that dynamically generates images via phpmapscript
> (the data is dynamic and is based current users configuration stored
> in a database).
> The work flow is the following: Fetch layers, classes, styles
> configured by user from database and create mapserver objects based
on
> this data.
> 
> Now the question is I am doing this on every request is it possible
to
> “serialize” somehow the mapobject and store in some cache backend
and
> just alter the extents when new request arrives ? At the moment I
> can't do this because map object contains “handles” and
“references”.
> I am already storing the styles, layer configuration in memcache,
but
> I want to store the entire mapobj in it and clear the cache then
user
> modifies something.
> 
> Any solutions/ideas/tips ?
> 
> P.S. Can't use tile cache because the data is dynamic.
> 
> -- 
> http://iap.md, The future is open
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to