Skip to content

Fix a cache invalidation issue with Distributions serving publications indirectly via repository_version - #8008

Draft
dralley wants to merge 1 commit into
pulp:mainfrom
dralley:cache-invalidation-bug
Draft

Fix a cache invalidation issue with Distributions serving publications indirectly via repository_version#8008
dralley wants to merge 1 commit into
pulp:mainfrom
dralley:cache-invalidation-bug

Conversation

@dralley

@dralley dralley commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Make sure we flush the cache (and update DistributedPublication) for
publications which were indirectly served via
Distribution.repository_version, rather than directly.

closes #7993

Comment thread pulpcore/app/models/publication.py
@dralley
dralley force-pushed the cache-invalidation-bug branch 2 times, most recently from 023e815 to 33db05a Compare August 25, 2026 05:00
@dralley

dralley commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Not quite ready for review yet.

@dralley
dralley force-pushed the cache-invalidation-bug branch from 33db05a to 7fb78f5 Compare August 25, 2026 19:25
…ions

Distributions serving via `repository_version` were missed by cache invalidation
and DistributedPublication tracking when publications were created or deleted.

Also fixes DistributedPublication to reactivate (clear `expires_at`) when switching
back to a recently-superseded publication, instead of creating a duplicate record.

closes pulp#7993
Assisted-By: Claude Opus 4.6
@dralley
dralley force-pushed the cache-invalidation-bug branch from 7fb78f5 to 2b2fe3f Compare August 25, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cache and DistributedPublication not refreshed for repository_version distributions on publication create/delete

1 participant