feat: remove cache daily

This commit is contained in:
VC
2024-07-05 11:53:30 +02:00
parent 6e0bcf25f0
commit 9a20e41ff5
2 changed files with 4 additions and 8 deletions

View File

@@ -4,14 +4,12 @@
cron: cron:
name: Mastodon tootctl name: Mastodon tootctl
minute: "0" minute: "0"
hour: "19" hour: "2"
weekday: "5"
job: "docker-compose -f /srv/docker/{{ web_hostname[0] }}/docker-compose.yml run --rm web bin/tootctl media remove" job: "docker-compose -f /srv/docker/{{ web_hostname[0] }}/docker-compose.yml run --rm web bin/tootctl media remove"
- name: cron for preview_cards tootctl - name: cron for preview_cards tootctl
cron: cron:
name: Mastodon tootctl preview name: Mastodon tootctl preview
minute: "30" minute: "30"
hour: "19" hour: "2"
weekday: "5"
job: "docker-compose -f /srv/docker/{{ web_hostname[0] }}/docker-compose.yml run --rm web bin/tootctl preview_cards remove" job: "docker-compose -f /srv/docker/{{ web_hostname[0] }}/docker-compose.yml run --rm web bin/tootctl preview_cards remove"

View File

@@ -5,8 +5,7 @@
user: mastodon user: mastodon
name: Mastodon tootctl name: Mastodon tootctl
minute: "0" minute: "0"
hour: "19" hour: "2"
weekday: "5"
job: "{{ mastodon_home }}/bin/remove_media.sh" job: "{{ mastodon_home }}/bin/remove_media.sh"
- name: cron for preview_cards tootctl - name: cron for preview_cards tootctl
@@ -14,6 +13,5 @@
user: mastodon user: mastodon
name: Mastodon tootctl preview name: Mastodon tootctl preview
minute: "30" minute: "30"
hour: "19" hour: "2"
weekday: "5"
job: "{{ mastodon_home }}/bin/remove_preview_cards.sh" job: "{{ mastodon_home }}/bin/remove_preview_cards.sh"