Skip to content

Commit c7815dd

Browse files
authored
FlatpakBackend: drop caches on refresh (#1638)
1 parent 16a2fe2 commit c7815dd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Core/FlatpakBackend.vala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ public class AppCenterCore.FlatpakBackend : Backend, Object {
571571

572572
if (user_installation != null) {
573573
try {
574+
user_installation.drop_caches ();
574575
remotes = user_installation.list_remotes ();
575576
preprocess_metadata (false, remotes, cancellable);
576577
} catch (Error e) {
@@ -580,6 +581,7 @@ public class AppCenterCore.FlatpakBackend : Backend, Object {
580581

581582
if (system_installation != null) {
582583
try {
584+
system_installation.drop_caches ();
583585
remotes = system_installation.list_remotes ();
584586
preprocess_metadata (true, remotes, cancellable);
585587
} catch (Error e) {

0 commit comments

Comments
 (0)