InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

Implement proper global cache

Open SchrodingersGat opened this issue 1 year ago • 0 comments

  • Framework exists already
  • Not fully implemented / tested
  • Deploy as standard in docker-compose
  • Redis or memcached? Valkey?

Currently we are hampered somewhat by the fact that the default django cache is not shared between processes - thus, there are a number of "hacks" to code around this. This means that there are a lot more database hits than necessary (e.g. checking settings values multiple times, reloading plugins, etc) which would really benefit from a global cache.

The biggest issue is that the foreground and background workers, and "registries" (plugins, machines) cannot share cached data.

References

  • https://github.com/inventree/InvenTree/pull/7157

SchrodingersGat avatar May 04 '24 23:05 SchrodingersGat