You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user activates a new version, the addons API response doesn't immediately reflect this change. This is because the API response is cached. However, triggering a purge on that project won't immediately work since the version won't be built=True at that point yet.
So, we need to figure it out how to purge the cache on "new active versions, but only once they have finished successfully". How we can detect this?
The text was updated successfully, but these errors were encountered:
I just realized that we are sending a build_complete signal when the build finishes. We can attach a receiver to this signal and check if this is the first successful build for this version, and purge the cache in that case 👍🏼
Note that I wasn't able to write a test case because `readthedocsext` is not
installed in our test suite, so I cannot check this task is called.
Closes#11291
When the user activates a new version, the addons API response doesn't immediately reflect this change. This is because the API response is cached. However, triggering a purge on that project won't immediately work since the version won't be
built=True
at that point yet.So, we need to figure it out how to purge the cache on "new active versions, but only once they have finished successfully". How we can detect this?
The text was updated successfully, but these errors were encountered: