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

Try to fix wrong urls for images in the related panels #803

Merged
merged 12 commits into from
Jun 19, 2024

Conversation

BentiGorlich
Copy link
Member

@BentiGorlich BentiGorlich commented Jun 3, 2024

This PR aims to get rid of a problem with the "related" panels on the homepage. I observed this problem on gehirneimer.de where the images in entries and posts and the avatars of users would not load in the related panels (everywhere else the images were loading just fine). Reason for that wrong source URLs. I suspect that the way the cached components work the environment can be loaded wrongly, but I am not sure of the reason.

The caching before this PR for the panels would render the HTML of the components and put that HTML in our cache (redis).
After this PR only the IDs of the entries, posts and users are put in the cache and the components get rendered normally.

I have this PR running on gehirneimer and it has solved the image problem

@BentiGorlich BentiGorlich added the bug Something isn't working label Jun 3, 2024
@BentiGorlich BentiGorlich self-assigned this Jun 3, 2024
@BentiGorlich
Copy link
Member Author

Since I changed this a few hours ago I didn't have the problem again -> ready for review

@BentiGorlich BentiGorlich marked this pull request as ready for review June 14, 2024 16:15
@BentiGorlich BentiGorlich added the backend Backend related issues and pull requests label Jun 14, 2024
@BentiGorlich BentiGorlich merged commit 2955526 into main Jun 19, 2024
7 checks passed
@BentiGorlich BentiGorlich deleted the fix/related-panel-caching branch June 19, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related issues and pull requests bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants