1
Dynamic Cache folder
Question asked by M.A. Beets - 10/29/2024 at 9:22 AM
Answered
Hi,

We have multiple customers with there own subdomain.
Sometimes it's needed to clear the cache folder but when we do that then all cache for all customers are cone.
It is possible to created a dynamic cache folder?  
like App_Data\DocumentCache\{tenant-id}
Or is it postille create a DocumentUltimateWebConfiguration instance per subdomain?

Regards,

Marco 

1 Reply

Reply to Thread
1
Cem Alacayir Replied
Employee Post Marked As Answer
Yes it's possible to create multiple DocumentUltimateWebConfiguration  instances and then you will need to pass that instance to DocumentViewer contructor.

var config = new DocumentUltimateWebConfiguration() {
    CacheLocation = "~/App_Data/DocumentCache2"
}

var documentViewer = new DocumentViewer(config){
	...
}

Reply to Thread