InvenTree/InvenTree/part
Oliver 6eddcd3c23
Setting caching (#3178)
* Revert "Remove stat context variables"

This reverts commit 0989c308d0.

* Add a caching framework for inventree settings

- Actions that use "settings" require a DB hit every time
- For example the part.full_name() method looks at the PART_NAME_FORMAT setting
- This means 1 DB hit for every part which is serialized!!

* Fixes for DebugToolbar integration

- Requires different INTERNAL_IPS when running behind docker
- Some issues with TEMPLATES framework

* Revert "Revert "Remove stat context variables""

This reverts commit 52e6359265.

* Add unit tests for settings caching

* Update existing unit tests to handle cache framework

* Fix for unit test

* Re-enable cache for default part values

* Clear cache for further unit tests
2022-06-12 10:56:16 +10:00
..
fixtures fix endline 2022-05-20 13:35:07 +02:00
migrations Delete part via API (#3135) 2022-06-06 11:42:22 +10:00
templates/part Converting more forms to the API (#3181) 2022-06-11 21:53:26 +10:00
templatetags Add more checks to pre-commit (#3132) 2022-06-06 08:56:52 +10:00
__init__.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
admin.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
api.py Adds API mixin for "bulk delete" (#3146) 2022-06-07 07:25:12 +10:00
apps.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
bom.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
filters.py Queryset annotation refactor (#3117) 2022-06-02 23:22:47 +10:00
forms.py Set part category (#3134) 2022-06-06 13:00:30 +10:00
models.py Fix has_complete_bom_pricing logic errors (#3140) 2022-06-06 18:57:21 +10:00
serializers.py Add new global setting to control auto-upload of test reports (#3137) 2022-06-06 15:20:41 +10:00
settings.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
tasks.py Overdue order notification (#3114) 2022-06-06 19:12:29 +10:00
test_api.py Add more checks to pre-commit (#3132) 2022-06-06 08:56:52 +10:00
test_bom_export.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
test_bom_import.py Add more checks to pre-commit (#3132) 2022-06-06 08:56:52 +10:00
test_bom_item.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
test_category.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
test_migrations.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
test_param.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
test_part.py Setting caching (#3178) 2022-06-12 10:56:16 +10:00
test_views.py Set part category (#3134) 2022-06-06 13:00:30 +10:00
urls.py Converting more forms to the API (#3181) 2022-06-11 21:53:26 +10:00
views.py Converting more forms to the API (#3181) 2022-06-11 21:53:26 +10:00