-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Implement an basic cache for faces.. Issue #193 #194
base: master
Are you sure you want to change the base?
Conversation
@stalker314314 |
Note: Nextcloud never eliminates the preview cache ... and that cache would be much bigger ... Can we live with this? |
I think only problem is initial pre-generation. If you have many pictures. Maybe could be part of the background job we run to analyze and cluster faces? |
I can live if you want to implement this. I think it will be super-hard to nail this right, with all needed cache evictions and so on. But if you want to try it - go for it! I am more wondering is this problem we need to solve? Thumbs are 32x32, right? I think that Thumbnail Generator app is already doing some thumbnail generation, and even default settings would suite us, right? (32x32 should be one of default sizes for |
Hi both,
I agree, maybe do the pre-generation, but until we have an easy cleaning this will not be merged..
As I said, generate them is easy, but I don't want to deal with cleaning, it must be something more or less automatic.
If it were just a performance problem, I wouldn't worry about fixing it. but the problem in #193 is that the number of calls in parallel to get the faces breaks the server.. Perhaps it is just an Apache problem, which should not accept so many queries in parallel, and should be limit the threads. I do not know. 😕
The previewgenerator app create the complete thumbnail of files, and you can indicate the size, but not the position (Faces position..), or name of file... It does not help us .. |
Would it not help immensely already if you set appropriate headers for client side caching? $dataDisplayResponse->cacheFor($days * 24 * 60 * 60);
$dataDisplayResponse->addHeader('Pragma', 'cache');
return $dataDisplayResponse; |
Hi @Biont |
Please @Petahh
Small attempt to improve your report.. They are not yet pre-generated, but you can verify that once generated, the load of your server should be lighter to show a complete view.