Do not refresh appstream metadata everytime
ClosedPublic

Authored by jgrulich on Aug 7 2017, 8:40 AM.

Details

Summary

Refresh appstream metadata only in case they have never been refreshed or when the cache is
older than 6 hours.

Diff Detail

Repository
R134 Discover Software Store
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jgrulich created this revision.Aug 7 2017, 8:40 AM
Restricted Application added a project: Plasma. · View Herald TranscriptAug 7 2017, 8:40 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
apol accepted this revision.Aug 7 2017, 10:30 AM
This revision is now accepted and ready to land.Aug 7 2017, 10:30 AM
apol added inline comments.Aug 7 2017, 10:31 AM
libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
507

Can you declare and set in the same line? No need to set it to null first.

This revision was automatically updated to reflect the committed changes.