[Mapguide-trac] [mapguide-trac] #2279: mg-desktop: SetResource does not flush out cached resource content

MapGuide Open Source trac_mapguide at osgeo.org
Tue May 28 05:37:41 PDT 2013


#2279: mg-desktop: SetResource does not flush out cached resource content
---------------------------+------------------------------------------------
   Reporter:  jng          |       Owner:  jng
       Type:  defect       |      Status:  new
   Priority:  low          |   Milestone:     
  Component:  Desktop API  |     Version:     
   Severity:  trivial      |    Keywords:     
External_id:               |  
---------------------------+------------------------------------------------
 For mg-desktop's implemented MgResourceService, we keep an in-memory cache
 of any resource content to avoid hitting the hard disk every time for
 resource content.

 However, flushing out the in-memory cached version of the resource if it
 exists only happens on a DeleteResource() call. Thus, doing a
 SetResource() call on a resource already cached and doing a subsequent
 GetResourceContent() will still retrieve the old cached version.

 We have a hook function ReleasePotentialLocks() that does all flushing of
 any cached objects associated with a given resource. We should also flush
 any in-memory resource content here as well.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2279>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list