I use plugin Comments from CakeDC and have big problem in production mode (debug=0). If I understand correctly, CakePHP cache models at first request and CakePHP using this cache unless expires. This plugin connects additional model to existing models using bindModel(). But since all models is caching, connecting additional model is not happen, and everything crashing.
How to use the cache in situations where there is use bindModel?
well, you only need to make sure your plugin is defined in your bootstrap right away:
this way you can use it anywhere later on.
and the cache won’t cause any problems