diff --git a/lib/private/app.php b/lib/private/app.php
index dc058cadc904a2e1b294dc4361c6514a3c49cefc..01597b37e77458acb6eb74d04f5e41476b2b392e 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -195,6 +195,9 @@ class OC_App {
 		}
 		sort($apps);
 		array_unshift($apps, 'files');
+		// Only cache the app list, when the user is logged in.
+		// Otherwise we cache the list with disabled apps, although
+		// the apps are enabled for the user after he logged in.
 		if ($user) {
 			self::$enabledAppsCache = $apps;
 		}