Caching Mechanism For Entity Configurations

Description

There’s an issue in code that results in Lucee 5 to not cache the entity configurations at all. It means each entity file is parsed, and related mappings are read with every request. Any application that has 200+ entities feels it and makes Lucee 5 unusable in terms of performance.

The Railo server handles it successfully with this line:
https://github.com/getrailo/railo/blob/ca2389a7abbfeeddbcdba6d4e78a194287f60a04/railo-java/railo-core/src/railo/runtime/orm/hibernate/HibernateORMEngine.java#L189

However, the line that returns the cached data is removed for Lucee:
https://github.com/lucee/extension-hibernate/blob/da26629d6cc18a6d61c53f14ad3bc2e4dfc701e9/source/java/src/org/lucee/extension/orm/hibernate/HibernateORMEngine.java#L172

Environment

None

Assignee

Unassigned

Reporter

Eylem Aydin

Labels

None

Priority

Major
Configure