Skip to content

Commit

Permalink
fix: On migrate flush everything
Browse files Browse the repository at this point in the history
Press is single-deploy, so this is fine.
It's almost equivalent to frappe.clear_cache()
  • Loading branch information
ankush committed Dec 18, 2024
1 parent a8f2bd3 commit d260ca3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions press/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,3 +409,6 @@
"website_page",
"website_route_rules",
]

Check failure on line 411 in press/hooks.py

View workflow job for this annotation

GitHub Actions / Lint and Format

Ruff (RUF005)

press/hooks.py:376:25: RUF005 Consider iterable unpacking instead of concatenation

before_migrate = ["frappe.cache.flushall"]
after_migrate = ["frappe.cache.flushall"]

0 comments on commit d260ca3

Please sign in to comment.