Repository navigation
Commit 4279fa4
committed
Invalidate the content cache once a new repository version is complete
Repository.new_version() cleared the cache of the distributions serving
the repository when the new version was started. Until that version is
complete, those distributions are still served from the previous one, so
a response computed in that window was put back into the cache and served
until it expired (ten minutes by default), although the new version had
been created in the meantime.
Clear the cache once the new version is complete and committed instead.
A version that changes nothing is discarded and no longer clears the
cache.
Closes: #82461 parent 0f6df7d commit 4279fa4
3 files changed
Lines changed: 43 additions & 2 deletions
File tree
- CHANGES
- pulpcore
- app/models
- tests/unit/models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
203 | 201 | | |
204 | 202 | | |
205 | 203 | | |
| |||
1534 | 1532 | | |
1535 | 1533 | | |
1536 | 1534 | | |
| 1535 | + | |
1537 | 1536 | | |
1538 | 1537 | | |
1539 | 1538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
0 commit comments