summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorValerio Ponte <valerio.ponte@gmail.com>2012-10-19 00:11:20 +0200
committerValerio Ponte <valerio.ponte@gmail.com>2012-11-14 20:10:20 +0100
commit8e190a5a97fd2be24370aa8d3f21b7641506ae92 (patch)
treec61cc0ffb3a8537d45deb9ad1f040cc715b6b3f5 /cron.php
parent8420b9bf678d04558e7e32a5d034a1da6f49cabe (diff)
downloadnextcloud-server-8e190a5a97fd2be24370aa8d3f21b7641506ae92.tar.gz
nextcloud-server-8e190a5a97fd2be24370aa8d3f21b7641506ae92.zip
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' ) {