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
avoid rebuilding cache during upload #1367
Comments
I'm currently testing it on a few Piwigo.com servers :-) |
The test shows a problem. During Community upload, the first photo is correctly uploaded, but on next photo:
|
I don't know how easy it is to do, but, if the website were to use the ws api under the hood, this would have the effect of both having a single code base to test and maintain, and keep the ws api fully featured. |
I think we need to go deeper on this experiment and try to change Community to keep the idea of not rebuilding cache each time we do a pure admin task like an upload. |
With the lounge we already have a nice optimization. For now and the immediate future, I don't see any easy way to reduce user cache resets. I postpone to 15 the "in depth" brainstorm to make things better. |
As discussed on https://piwigo.org/forum/viewtopic.php?id=28338 we have a problem on high volume galleries when an upload is running and each photo is uploaded very quickly. The problem comes from the cache regeneration.
In
include/user.inc.php
we already have:Meaning we avoided to regenerate cache if we were in the administration. That was perfectly valid when we didn't use the API to upload photos. Now that we use
pwg.images.upload
(and other methods) we skip thisIN_ADMIN
test and the cache is regenerated each time we callws.php
. We should replace it with something like:The text was updated successfully, but these errors were encountered: