149 View cache#178
Conversation
armanist
left a comment
There was a problem hiding this comment.
First please look at scrutinizer issues and fix them.
The library uses code PHP functionality, but instead it should use every available functions from framework.
The approach of storing ttl into the content is not desirable
serializing the content can lead potential problems
Arno2005
left a comment
There was a problem hiding this comment.
Add the missing doc blocks and remove duplicate unit tests.
armanist
left a comment
There was a problem hiding this comment.
The latest changes introduced some inconsistencies..
The ttl property of ViewCache is set from Route class while isEnabled is set from Router class.
We need to keep consistency on similar operations applied on same object.
It's obvious now that these both things (ttl and isEnabled) should be set from Router class after the current route is known. Therefore there would no need of passing ViewCache instance to Route class anymore.
No description provided.