diff --git a/OpenSim/Framework/Cache.cs b/OpenSim/Framework/Cache.cs index 4746d3c4b4..bccda24e41 100644 --- a/OpenSim/Framework/Cache.cs +++ b/OpenSim/Framework/Cache.cs @@ -492,5 +492,15 @@ namespace Opensim.Framework break; } } + + public void Invalidate(LLUUID uuid) + { + if(!m_Lookup.ContainsKey(uuid)) + return; + + CacheItemBase item = m_Lookup[uuid]; + m_Lookup.Remove(uuid); + m_Index.Remove(item); + } } }