I am using a layout which has three lists which are created from a database query. I would propose to put this data in the session so the app doesn’t have to query the database on every page load.
The admin section of the app will not need this data as it uses a different layout. In cakePHP where is the best place to put the logic that sets this session data?
Is the best approach to create another controller that extends the AppController and looks after setting this session data?
You can create elements for these 3 lists. The best way to do this is using requestAction and elements. Using elements also allows you to cache the output, which is always a good idea.