leinir created this revision. Restricted Application added a project: Frameworks. Restricted Application added a subscriber: Frameworks.
REVISION SUMMARY This is a two layer approach to creating less network traffic when initialising a KNSCore::Engine: - Firstly, cache the xml documents themselves - Secondly, share XML fetch jobs when many are created at the same time for the same URL The result of this patch in a single fetch per provider url per application launch, and in connection with https://phabricator.kde.org/D5638 we will fetch the data from the network only once, until the cache is invalidated, all in all resulting in much less traffic and less hammering of the servers. CCBUG: 379193 TEST PLAN Using Discover, this results in much less network traffic during startup and engine initialisations. REPOSITORY R304 KNewStuff REVISION DETAIL https://phabricator.kde.org/D5639 AFFECTED FILES src/core/engine.cpp To: leinir, whiting, apol Cc: #frameworks