I’d like to know more details of how the “cacheQueries” property in the Model class works.
I saw in the documentation that this property only activates the in-memory cache and that the results are not saved beyond the current request. After activating it I noticed a great improvement in performance since the queries that were previously duplicated due to the extra queries of the hasMany relationships are now gone and the response time has also been reduced.
Should I be concerned about anything that is triggered by this activation, such as a crash of caches or some server overhead or why this is not the default behavior.
Https://book.cakephp.org/2.0/en/models/model-attributes.html#cachequeries