acdh-oeaw / apis-core-rdf

APIS Core refactored
https://acdh-oeaw.github.io/apis-core-rdf/
MIT License
3 stars 3 forks source link

Create dedicated caching module #60

Closed SteffRhes closed 1 year ago

SteffRhes commented 1 year ago

We should utilize ad-hoc caching much more throughout the code-base to improve performance.

Currently there are some scattered modules / classes / functions in use already, like GetContentTypes and several functions in AbstractEntity (which will be redundant or conflicting soon with various other Abstract classes to come). Also in my current form refactoring I implemented an autcomplete caching for properties.

I suggest to collect various caching functions in one place, probably under apis_core/helper_functions.

SteffRhes commented 1 year ago

WIth the introduction of new abstract classes I needed to avoid caching redunancies between them so I already started work on this. Will be pushed with my current work on the triple form refactoring.

SteffRhes commented 1 year ago

Done with https://github.com/acdh-oeaw/apis-core-rdf/commit/e8bb50a17eb108f9427cd77c5fed156b570da8df#diff-9833c8b9a21a5059ad6869d59f4bbf69a9c6e175c6ef0d04712013504d5ca395

This module bundles logic which previously resided in AbstractEntity and GetContentType, and it should be our single focal point for everything caching-related from now on.