From: Heath S. <he...@ou...> - 2015-04-28 23:01:07
|
For the time being, I thought I'd share that internally I've added - if set - the layout directory (whether doing a layout or not - seems the BA might want to do something special here) + package path to the rwzSourcePaths array in the CacheVerifyLocalContainerOrPayload() function we check before asking the BA. This works and feels like a good long-term fix unless we do want to consider the layout directory a sort of cache. Heath Stewart Software Engineer Visual Studio, Microsoft http://blogs.msdn.com/heaths From: he...@ou... To: wix...@li... Date: Tue, 28 Apr 2015 15:05:51 -0700 Subject: [WiX-devs] Avoiding re-downloading of payloads I'm looking into fixing http://wixtoolset.org/issues/3060/ (rather, I'm fixing it anyway and was wondering if it already was so may as well pick this up) and have determined a couple different ways but wanted to get architecture guidance (or feedback in general). Mainly, is a layout directory considered a local cache? I'm assuming not, since "cache" also carries some guarantees like that the file is protected (at least in per-machine cases). I ask, because one way is to check if we're doing a layout and, if so, track the layout path as the cache. This will avoid adding cache actions. Similarly, I could add a member to track a layout specifically and avoid adding cache actions, but that blurs the line between cache and layout directory. If we want to disassociate the cache and layout (as they appear to be now), the most straight forward way is to consider the layout directory (if doing a layout, or maybe just query the variable anytime since maybe the BA wants that to be considered regardless of bundle action) in CacheVerifyLocalContainerOrPayload(). We still plan cache actions, but not until before downloading it do we consider whether it's already downloaded. I'm leaning toward this one given that a layout isn't really a cache, but if we want to consider layout as a type of cache than the ideas above make more sense. Thoughts? Heath Stewart Software Engineer Visual Studio, Microsoft http://blogs.msdn.com/heaths ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ WiX-devs mailing list WiX...@li... https://lists.sourceforge.net/lists/listinfo/wix-devs |