[Cartoweb-users] ignoring the map result cache

Oliver Christen oliver.christen at camptocamp.com
Wed Feb 13 06:57:33 EST 2008


why not directly modify the getMap function from MapResultCache.php and 
simply check if some parameter is set in $_REQUEST which would have the same 
result as skipCache, being return 
$this->getMapResultFromServer($mapRequest);

and have the edit plugin set with javascript some parameter in a hidden 
field or so when the user add/modify/delete a feature with the dhtml

that way you dont have to call a method, beside I think the method call 
would happen too late in the execution flow, as the caching system is quite 
low level

regards
Oliver

>
> I'm thinking about writing a GuiProvider plugin that looks for a
> specific get parameter (for example "refreshCache") and then (on the
> server side) tells the MapResultCache object to remove the cache file. I
> will also have to modify the MapResultCache class to include such a
> method (maybe "setResetCache" or something similar).
>
> Do you think this is a sensible approach?
> Or should I try to hack the core plugins instead?
>
> Cheers!
> Frederic
>
> 



More information about the Cartoweb-users mailing list