Skip to content
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

Animal images overload the asm server #22

Open
inghamn opened this issue Aug 8, 2022 · 1 comment
Open

Animal images overload the asm server #22

inghamn opened this issue Aug 8, 2022 · 1 comment

Comments

@inghamn
Copy link
Member

inghamn commented Aug 8, 2022

Rendering the page of animal images on Drupal overloads the asm server. Each image requires postgres database calls to check permissions and such. The process for each image can be slow. On our website, we chose to create a page with all animals (hundreds of images). We clear the cache once an hour and rendering the page can take several minutes. While this is going on, requests for this page of animal pictures stack up, overloading the proxy as well as the asm server.

inghamn added a commit that referenced this issue Aug 8, 2022
The performance cost of requesting all animal images once an hour is too steep a price to pay.  We will keep animal images around forever, now.

This means that images that are updated will not be reflected on the website.

Updates #22
@inghamn
Copy link
Member Author

inghamn commented Aug 8, 2022

Since we are no longer purging the images from the cache, when staff update an animal's picture, it will not be reflected on the city website.

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

No branches or pull requests

1 participant