U4-10400 - Clear CDF temp files during upgrades

Created by Sebastiaan Janssen 11 Sep 2017, 10:07:09 Updated by Shannon Deminick 12 Sep 2017, 03:33:28

Tags: Unscheduled

Relates to: U4-9873

Subtask of: U4-9609

We've had some reports like http://issues.umbraco.org/issue/U4-9873#comment=67-41634 where the only way to truly clear the CDF cache seemed to be was to actually delete the files in the temp directory.

We can do this when the upgrade installer runs, so that people won't have to do it manually.

Comments

Sebastiaan Janssen 11 Sep 2017, 11:00:23

A simple PR: https://github.com/umbraco/Umbraco-CMS/pull/2183

To test: change the version in web.config to something other than 7.6.7 and see if it deletes the folder during the upgrade.


Anders Bjerner 11 Sep 2017, 11:11:00

@sebastiaan Any reason why the method is made internal? Could be useful for developers to have the same option (right now we have our own logic that does somewhat the same).


Shannon Deminick 12 Sep 2017, 03:27:43

I'll change it to public no worries - though this really should't be used in most cases. The only real use case for this is if the cdf version is updated to a version that previously existed and already exists on disk.


Shannon Deminick 12 Sep 2017, 03:33:21

I updated some minor bits of code, tested and all works well.


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.6.7

Sprint: Sprint 67

Story Points: 0.5

Cycle: