aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cleanupavatarjob.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cleanupavatarjob.php')
-rw-r--r--lib/cleanupavatarjob.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/cleanupavatarjob.php b/lib/cleanupavatarjob.php
new file mode 100644
index 00000000000..16bf263d211
--- /dev/null
+++ b/lib/cleanupavatarjob.php
@@ -0,0 +1,13 @@
+<?php
+
+class CleanUpAvatarJob extends \OC\BackgroundJob\TimedJob {
+
+ public function __construct () {
+ $this->setInterval(7200); // 2 hours
+ }
+
+ public function run ($argument) {
+ // TODO $view
+ // TODO remove ALL the tmpavatars
+ }
+}