summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-07 21:15:52 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-10-07 21:29:23 +0200
commit0c2b17c80f54027aaebbc43b8efb21fdaffe8d45 (patch)
treeb3708ab19ca04336268ffb558c9000c9a7874700 /lib/private/legacy
parent67d3574bdfdc08ad5815b5034a7c2c2e35afb4c0 (diff)
downloadnextcloud-server-0c2b17c80f54027aaebbc43b8efb21fdaffe8d45.tar.gz
nextcloud-server-0c2b17c80f54027aaebbc43b8efb21fdaffe8d45.zip
Cache AppInfo in Memory Cache if configured
This saves around 20ms on a bare-bone instance, on bigger ones more (depending on the number of installed apps). See https://blackfire.io/profiles/compare/fc326ad3-100d-49b8-8ea9-8343240f53f3/graph Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/app.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 1093f2c8814..5e05884f5c0 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -682,7 +682,7 @@ class OC_App {
$file = $appPath . '/appinfo/info.xml';
}
- $parser = new InfoParser();
+ $parser = new InfoParser(\OC::$server->getMemCacheFactory()->create('core.appinfo'));
$data = $parser->parse($file);
if (is_array($data)) {