Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a DataViewWebPart with a complicated and rather expensive linked XSLT (the XSLT itself is stored in the Documents library of the site).

Currently, the part takes a long time to render, even though I have the cache web part settings configured properly (I think):

    <property name="CacheXslTimeOut" type="int">86400</property>
    <property name="CacheXslStorage" type="bool">True</property>

Is there anything else that I need to set to enable XSLT caching?

Is there anything that I might be doing inadvertently that would cause the DVWP to re-run the XSLT?

share|improve this question
add comment

2 Answers 2

A solution may be to not use the DVWP cache; instead you could enable the output cache on your page.

share|improve this answer
add comment

I would also suggest placing your XSL file to a file system, to use output cache for your end users. That way only 1st request takes some time to load XSL, all the following requests will use local copy.

share|improve this answer
    
I'm not really sure what this means - can you give me a quick run-down on how you think I would implement this? –  Dexter Aug 2 '11 at 10:55
    
you can put your XSL file to the 14\Template\Layouts folder on a server (SP feature is preferrable if you want to control it by activation or you have more than one WFE). URL of the XSL will be site/_layouts/file.xsl . Ofc you can use subfolder there to have it better organized –  Ivan Padabed Aug 3 '11 at 15:35
    
won't the XSLT be picked up by the output cache if it's published in a document library? –  Dexter Aug 3 '11 at 15:58
    
unfortunately no afaik –  Ivan Padabed Aug 5 '11 at 11:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.