Skip to content

Commit

Permalink
nixos/firefly-iii: Improved cache clearing
Browse files Browse the repository at this point in the history
(cherry picked from commit 51bed70)
  • Loading branch information
savyajha authored and github-actions[bot] committed Dec 20, 2024
1 parent 2902189 commit 3a00965
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/modules/services/web-apps/firefly-iii.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ let
${lib.optionalString (
cfg.settings.DB_CONNECTION == "sqlite"
) "touch ${cfg.dataDir}/storage/database/database.sqlite"}
${artisan} optimize:clear
rm ${cfg.dataDir}/cache/*.php
${artisan} package:discover
${artisan} firefly-iii:upgrade-database
Expand Down Expand Up @@ -318,6 +319,7 @@ in
} // commonServiceConfig;
unitConfig.JoinsNamespaceOf = "phpfpm-firefly-iii.service";
restartTriggers = [ cfg.package ];
partOf = [ "phpfpm-firefly-iii.service" ];
};

systemd.services.firefly-iii-cron = {
Expand Down

0 comments on commit 3a00965

Please sign in to comment.