web
web copied to clipboard
Album preview shows wrong number of total images
The preview of an album did not display the correct number of total images. I was however able to fix it by simply making some change to the album and updating it. I think that the reason why this fixed the problem is due to the fact that when more images are added to an album, the album object itself is not updated (or at least not trigger a reload of the cached album object). This will then result in album.images.count
not returning the correct number of images. When I updated the album object, the cache album was reseted, resulting in album.images.count
returning the expected number of total images.