PropCache Scripts
Dynamic Document Property caching
Last updated
Dynamic Document Property caching
Last updated
There are two scripts which implement Dynamic Document Property caching.
If you can use the Document Cache Component because you must carry over documents from one branch into another, use it! Documents keep their document properties when they are in a Document Cache.
The Dynamic Document Property Cache is not a replacement for the Document Cache. You use the Property Cache when you do not need returned documents, but you only need certain information from it, like an Id or success/failure.
To use the two Property Cache Scripts is fairly simple:
(1) Configure caching by setting
DPP_ValuePropertyNames = "DDP_AccountId,DDP_InvoiceId"
to tell the PropCache.Save
script which Dynamic Document Properties should be cached.
(2),(3) Whenever you have got the properties call the PropCache.Save
script, to add or update their values.
(4) When you need the cached Document Properties back call PropCache.Restore
and all cached properties will be attached to the current documents
You can the use the document properties in addition to the request document to complete you response profile.