Zooflow: Clear cache for DocumentResultList
This commit is contained in:
@@ -29,10 +29,20 @@ Namespace DocumentResultList
|
||||
Cache = New Cache(pLogConfig, 104_900_000)
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Removes a Document from the cache
|
||||
''' </summary>
|
||||
Public Sub Invalidate(pDocument As Document)
|
||||
Cache.Remove(pDocument)
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Clears the cache completely
|
||||
''' </summary>
|
||||
Public Sub ClearCache()
|
||||
Cache.Clear()
|
||||
End Sub
|
||||
|
||||
Public Function Load(pObjectId As Long, pFullPath As String, Optional pForce As Boolean = False) As Document
|
||||
Dim oDocument As Document = Nothing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user