Changes between Version 1 and Version 2 of MapGuideRfc151
- Timestamp:
- 09/20/15 21:39:10 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc151
v1 v2 261 261 }}} 262 262 263 If the resource is changed, remove the entry from the cache. 264 {{{ 265 void MgCacheManager::NotifyResourceChanged(CREFSTRING resource) 266 { 267 ...... 268 if (STRING::npos != resource.rfind(MgResourceType::LayerDefinition)) 269 { 270 ACE_MT(ACE_GUARD(ACE_Recursive_Thread_Mutex, ace_mon, m_resourceServiceCache.m_mutex)); 271 m_resourceServiceCache.RemoveEntry(resource); 272 } 273 } 274 275 }}} 276 277 263 278 Now, we get the MdfModel::LayerDefinition of a layer from the cache manager: 264 279 {{{