Open teolemon opened 4 years ago
Yes, we should do something about that. The problem is that this code without a code block is apparently always called when ProductOpener::Display
is imported. Therefore it's probably better to move it into a sub
which gets called in startup_apache2.pl
.
Since we now have more files that are generated/minified by gulp, and then put into the dist
directories, there could also be an advantage in simply iterating through all files in there recursively, than listing them in Display.pm
. If the directory does not exist (Docker scenario with nginx front end proxy in a different container), use the current time for all files.
There's an additional opportunity for optimization in here. We have over 60 references to /css/dist/
and /js/dist/
files in here, which are don't use the timestamp right now, since we didn't list them in %file_timestamps
manually.
Re-opening as the symptom was fixed, but not the resolution suggested by @hangy
Stale issue message
This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts
Many warnings like this in the build process. Is it normal ? Is it something we can optimize ?
Part of
5512