Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValerio Ponte <valerio.ponte@gmail.com>2012-10-19 02:11:20 +0400
committerValerio Ponte <valerio.ponte@gmail.com>2012-11-14 23:10:20 +0400
commit8e190a5a97fd2be24370aa8d3f21b7641506ae92 (patch)
treec61cc0ffb3a8537d45deb9ad1f040cc715b6b3f5 /cron.php
parent8420b9bf678d04558e7e32a5d034a1da6f49cabe (diff)
Moved X-Sendfile headers into OC_Files::get
now should work with temp files too
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index cd2e155a494..a202ca60bad 100644
--- a/cron.php
+++ b/cron.php
@@ -56,6 +56,9 @@ if( !OC_Config::getValue( 'installed', false )) {
// Handle unexpected errors
register_shutdown_function('handleUnexpectedShutdown');
+// Delete temp folder
+OC_Helper::cleanTmpNoClean();
+
// Exit if background jobs are disabled!
$appmode = OC_BackgroundJob::getExecutionType();
if( $appmode == 'none' ) {