Multilevel Category with Caching

This is where you share YOUR scripts with others

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 3
Joined: Thu May 26, 2011 2:09 am

Multilevel Category with Caching

Postby samiks » Wed Jun 22, 2011 12:46 am

The menu is created dynamically from the data inserted in the database earlier. But each time the website displays the menu it need to query the database, fetch the result and create the markup over and over again. This leads to a slower page load. Here comes the utility of caching. Generally the main menu is not changed frequently. So the HTML created by PHP may be saved in server and served to the client without any dynamic rebuilding. This will speed up page load time. After a predefined frequency the cache will be rebuilt automatically. Thus the change made to the database will be reflected in the main menu.

Please reply me about the idea, because I have a lot to share with you. You can get the code in here ... h-caching/

User avatar
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Multilevel Category with Caching

Postby egami » Wed Jun 22, 2011 7:12 am

I doubt very seriously that anyone's going to click on your link to go to your personal site.
Good luck with that. If you want some one to help you, post the code, not a link.

Return to “Your Scripts”

Who is online

Users browsing this forum: No registered users and 0 guests