Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Prepopulating Cache Server
peter_bui
Hi All,
Im new to interwoven SDK so please bear with me.
I need to write a app of some sort which will prepopulate the cache on a remote worksite server.
The server is 8.0 w/ caching HF1 .
What i would like to do is to populate the caching server with documents which have a edit date of xx/xx/2006.
Now i know you can populate the cache via an API however i havnt been able to find it. Can anyone point me in the right direction ?
Thanks
Find more posts tagged with
Comments
jny
We have a method exposed by the imanage.dll to cache a document.
If your WorkSite Server is set up for caching and is 7.5 SP1 and forwards, you may use the AddToCache method to cache the document:
[C#]
========================================================
// 8.0
IManDMS dms = new ManDMSClass();
IManSession sess = dms.Sessions.Add("");
sess.TrustedLogin();
IManDocument doc = sess.PreferredDatabase.GetDocument(, );
IManCacheableContent docToCache = (IManCacheableContent) doc;
docToCache.AddToCache();
// 7.5
========================================================
NRTDMS dms = new NRTDMSClass();
INRTSession sess = dms.Sessions.Add("", null, null);
sess.TrustedLogin();
INRTDocument doc = sess.PreferredDatabase.GetDocument(, );
INRTDocument2 docToCache = (NRTDocument2) doc;
docToCache.AddtoCache();
==========================================================
Ben_inform
I have written a tool that does this .
I can sell it to you for $23726582946.12.
Let me know when you have transfered the cash.
Migrateduser
I would be interested in this utility ???