]> source.dussan.org Git - nextcloud-server.git/commit
Cache responses from the AppStore server
authorLukas Reschke <lukas@owncloud.com>
Fri, 9 Jan 2015 17:31:39 +0000 (18:31 +0100)
committerLukas Reschke <lukas@owncloud.com>
Fri, 9 Jan 2015 18:49:59 +0000 (19:49 +0100)
commitb8b4df5425e25403e77b108333faa2251b1348b3
tree7dc2136658bcaff9b679799ae22c5e6acecc03fc
parent59a1d16d0fd3d67833bfb728ce03cebc7fec4043
Cache responses from the AppStore server

Otherwise every time the AppStore was opened a lot of connections to the AppStore server were made which resulted in a terrible performance.

This changeset will cache the response for a sensible time so that only the first request will be somewhat slow.

Performance changes:
- Loading a category took previously more than 3 seconds on my machine. Now for every follow-up request it takes less than 200ms, resulting in a performance gain of 1950%
- Loading the category list took previously about 750ms - now it takes 154ms, a total performance gain of 395%
lib/private/ocsclient.php
settings/ajax/disableapp.php
settings/ajax/enableapp.php
settings/ajax/installapp.php
settings/ajax/uninstallapp.php
settings/application.php
settings/controller/appsettingscontroller.php