[mapserver-users] Serialize MapObj of phpmapscript
Steve.Lime at dnr.state.mn.us
Mon Oct 26 16:44:07 EDT 2009
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
>>> On 10/26/2009 at 11:03 AM, in message
<2a37f67a0910260903g29482f00j136f80cd3f8d68b0 at mail.gmail.com>, Pavel
<iacovlev.pavel at 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
> this data.
> Now the question is I am doing this on every request is it possible
> “serialize” somehow the mapobject and store in some cache backend
> just alter the extents when new request arrives ? At the moment I
> can't do this because map object contains “handles” and
> I am already storing the styles, layer configuration in memcache,
> I want to store the entire mapobj in it and clear the cache then
> 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 at lists.osgeo.org
More information about the mapserver-users