Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

SoftLinkCollection timesout

$
0
0

Hi,

I am looking for orphaned files in the VPP in our Episerver 6 R2.

I loop through all my VPP directories and find the files in each and count how many linked pages there are using SoftLinkCollection.

For example:

foreach (UnifiedFile file in directoryFiles)
                    {
                        string parentPageList = String.Empty;
                        EPiServer.DataAbstraction.SoftLinkCollection filecollection = EPiServer.DataAbstraction.SoftLink.Load(file);
}

But it times out as I would expect there to be quite a lot of intensive work on the site to loop all pages to see if the file is linked.

Is there any way I can improve the code to make it work better?


Viewing all articles
Browse latest Browse all 9076

Trending Articles