Commit b3a8d64b96fbba47e7ab28f8c5f5bdbbeccbbd99
1 parent
c8c4ecda
fix for KTS-959: actually clear the document cache when we ask for it
We need to manage this ourselves, instead of just delegating to KTEntityUtil since Document is a wrapper object, not an entity. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5407 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
0 deletions
lib/documentmanagement/Document.inc
| ... | ... | @@ -565,6 +565,11 @@ class Document { |
| 565 | 565 | // }}} |
| 566 | 566 | |
| 567 | 567 | function clearAllCaches() { |
| 568 | + | |
| 569 | + KTEntityUtil::clearAllCaches('KTDocumentCore'); | |
| 570 | + KTEntityUtil::clearAllCaches('KTDocumentContentVersion'); | |
| 571 | + KTEntityUtil::clearAllCaches('KTDocumentMetadataVersion'); | |
| 572 | + | |
| 568 | 573 | return KTEntityUtil::clearAllCaches('Document'); |
| 569 | 574 | } |
| 570 | 575 | ... | ... |