CakeDC / Enum

Enumeration list for CakePHP
MIT License
27 stars 17 forks source link

ConstStrategy::enum() should cache generated lists. #5

Closed ADmad closed 9 years ago

ADmad commented 9 years ago

Currently ConstStrategy::enum() does the process of extracting enum list on each call.

Given the use of reflection and multiple iterations of array manipulation and callbacks usage, the whole operation is non trivial and it would be better the lists were cached to avoid the overhead on subsequent requests for the same list.