docker-openwisp
docker-openwisp copied to clipboard
[feature] Execute collect static only when versions change
trafficstars
I have an idea of how we could deal with extreme slowness of calling collectstatic when using object storage:
- We could hash the output of
pip freezein the dashboard container - Before calling
collectstaticwe check in redis to see if the current pip freeze hash is different from the one saved there - If it's different we call collectstatic and then save the new hash in redis
@pandafy @atb00ker what do you think?
I think this would work! 😄
I agree, this will surely reduce the time for bringing up new container.