I am putting together a cakephp and mysql application, and would like to display some menus and items dynamically through the database.
For example: View the latest updates, the latest database inserts, the menu with categories registered in the system, etc.
What happens:
-User accesses home, system requests menus to bank.
-User goes into some link, and the system requests the database again.
I understand that this way, with every get on the site, it will go into the database again, fetch this information to render the menus.
Doubt:
- Is there any way to adjust for the system to create only one request in the database on user access, not overloading the database with selects for each link within the site?
- Changing these requests for ajax would be a good solution?
- Is Cakephp's CacheHelper able to assist in this in any way?