Commit 1fda2caa8fc9fab806166d1b6a826349bf25d453

Authored by nbm
1 parent 232d591d

Clear DocumentFieldLink caches when we've not gone through the entity

layer.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5376 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/documentmanagement/DocumentFieldLink.inc
... ... @@ -166,5 +166,9 @@ class DocumentFieldLink extends KTEntity {
166 166 'document_field_id' => KTUtil::getId($oField),
167 167 ));
168 168 }
  169 +
  170 + function clearAllCaches() {
  171 + return KTEntityUtil::clearAllCaches('DocumentFieldLink');
  172 + }
169 173 }
170 174 ?>
... ...
lib/documentmanagement/documentutil.inc.php
... ... @@ -297,6 +297,7 @@ class KTDocumentUtil {
297 297 }
298 298 KTDocumentUtil::setComplete($oDocument, "metadata");
299 299 KTDocumentUtil::updateSearchableText($oDocument);
  300 + DocumentFieldLink::clearAllCaches();
300 301 return true;
301 302 }
302 303 // }}}
... ...