When I publish content to my server should I publish `AppData\Temp' folder as well?
Logic is not to do that but cannot find information online about it.
When I publish content to my server should I publish `AppData\Temp' folder as well?
Logic is not to do that but cannot find information online about it.
In general, if publishing from one server to another, I would avoid publishing the contents of /App_Data/Temp/. Some of the files that are contained in those folders have machine specific file paths in that may not work on the new server if the website's file path is different.
The entire contents of the folder should be recreated when the website spins up if the folder is empty.
I've done both, and both times I've had peculiarities, but republishing all nodes/re-indexing sorts it out, and I do either depending on what's gone before as a matter of course now.
When deploying your application, you should follow these guidelines for your App_Data folder.
App_Data
Permissions = Read, Write
Required folders
The following folders are required for Umbraco to serve.
As long as these folder exist (they can be empty) Umbraco 4/6 will be happy.
App_Data\
App_Data\TEMP\ExamineIndexes
App_Data\Logs
App_Data\preview
Not required / Ignore
Cache (e.g. locally created files)
Log files
Deployment
If you follow the above rules, your deployment should only contain the files and folder required for Umbraco to serve. You can safely overwrite (not delete) the App_Data folder on each deployment.
Notes in some older versions of Umbraco it gets a little upset if the
installedPackages.config
andcreatedPackages.config
files are missing. However, in recent versions Umbraco will just automatically recreate these files. I tend not to include these files, but it's personally preference really.The folder should exist and be writable as it is where things like your Examine search indexes will be published as well as ClientDepenency cache if you are using it.