Improving the speed of php
Posted
by cast01
on Stack Overflow
See other posts from Stack Overflow
or by cast01
Published on 2010-04-05T17:23:16Z
Indexed on
2010/04/05
17:33 UTC
Read the original article
Hit count: 357
I'm currently working on a website in PHP, and I'm wondering what the best practices/methods are to reduce the time requests take. I've build the site in a modular way, so a page would consist of a number of modules, and each of these would need to request information.
For example, I have a cart module, that (if a cart is set) will fetch the cart with the id (stored in a session variable) from the database and return its contents. I have another module that lists categories and this needs to fetch the categories from the database.
My system is built with models, and each model might also make a request, for example a category model will make a request to get products in that category.
© Stack Overflow or respective owner