-
Notifications
You must be signed in to change notification settings - Fork 189
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
use unique name for cache folder #2331
Conversation
depends on #2328 since that required similar changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable to use the instance ID for the name of the temp folder.
Since you use it in multiple places, have you thought about creating a utility for it so you don't always have to duplicate the code? (get paths, join and create them)
What I don't quite understand ... what is the cache of logos/favicons for, when each one is in the DB with the original URL and is also loaded by the clients by it?
Favicon I'm not sure the library uses that cache without asking and will create a directoy on it's own if we don't provide one. Logo, is because you said we should check the image if it actually is usable for new and if not we should fall back to the favicon. For example if the file is actually an image and if it is square I think.
Yea I will check that. |
I've looked through the code and it's caching the urls after followed redirections and, if used, the actual image file. news/lib/AppInfo/Application.php Line 143 in 17f0fc7
Interesting, I've forgot about this one 😄 |
I think this should also be suggested upstream as the default because we can't be the only app running into this. |
Ah I didn't see the global config, makes more sense to adjust it there I think. |
e7324af
to
935edec
Compare
Signed-off-by: Benjamin Brahmer <[email protected]>
Changed - Drop support for Nextcloud 25, Supported: 26, 27 (#2316) - Add a new command for occ `./occ news:updater:job` allows to check and reset the update job (#2166) - Check for available http(s) compression options and use them (gzip, deflate, brotli) (#2328) - Change and unify [cache](https://nextcloud.github.io/news/install/#cache) to use the instance ID of Nextcloud (#2331) Signed-off-by: Benjamin Brahmer <[email protected]>
Changed - Drop support for Nextcloud 25, Supported: 26, 27 (#2316) - Add a new command for occ `./occ news:updater:job` allows to check and reset the update job (#2166) - Check for available http(s) compression options and use them (gzip, deflate, brotli) (#2328) - Change and unify [cache](https://nextcloud.github.io/news/install/#cache) to use the instance ID of Nextcloud (#2331) Signed-off-by: Benjamin Brahmer <[email protected]>
Summary
We had multiple reports now of shared hoster environments where the updating of some feeds fail because they can't write to the temp directory.
One possible issue is that they can't write to /tmp at all (which is the default nextcloud uses).
Or that they can write to /tmp but for some reason the hoster allows all users to share /tmp.
This PR changes that in using the instance ID of Nextcloud a unique identifier that is stable.
Example from my dev instance:
Checklist