New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing picture from album does not update the album cover #575
Comments
That's because it is cached. It will disappear later. |
Ok. At what level is it cached? If I open a shared album with deleted cover picture in an incognito/private tab with disabled cache the deleted picture still shows up as a cover. This happens even if the shared link is created after the deletion. There does not seem to be a way to manually change the cover picture. I could recreate the album but that defeats the purpose... I create the album first by selecting all pictures in some time range, then I delete the ones I do not want. If one of the is the cover picture then the cover picture stays there. This is bad if that picture is not meant to be shared for whatever reason. |
On the server in memory. Expires after one hour or so. Cache should be cleared if album items change, but wasn't a top priority so far. |
It has been more than two weeks than the cover picture was removed from the album but it still shows up in a shared link open in incognito/private tab with disabled cache. I am using NGINX as proxy with the following configuration:
I get a
|
Here is the code for you to review: https://github.com/photoprism/photoprism/blob/develop/internal/api/thumbs.go#L204 |
@aureooms Could you take a look at our code? If you think this is a bug, I might be able to fix it next week. In any case, it should work to clear the cache when an album changes - just wasn't a priority so far. Last week was crazy busy again, so I didn't get to much. |
Also the cover picture does not update when I restart the server. I am 100% sure the picture used for the cover is not part of the album (it was included at album creation but was removed later). I will look at the code. |
Maybe there is an issue with the db query then: We keep the database row when a photo was removed, maybe the "hidden" flag is ignored? |
Here is what I think is happening:
|
Yes! |
Can you point to where |
Why not add a button to set album cover ? so this problem is gone |
Starting a new Docker build for testing soon. |
The changeset in 668025c looks good to me. Clearing the cache when the album cover query response changes would be sufficient. Clearing on each update is safe. |
If one removes from an album the picture used by its cover, the cover does not get updated to use a different picture from the album. Bug or feature?
The text was updated successfully, but these errors were encountered: