Jump to content

Put data into array from database


Omzy

Recommended Posts

Basically the front page of my site displays details of the 5 most recent customers added to the site. It gets this information from the database - very basic stuff.

 

As the site is getting busier its slowing down due to the number of requests to the database. Is it possible I could have a file on the server that I can run manually everytime some new data is added to the database, and will put this data into an array so it can be displayed on the front page?

 

This way there would not be a call to the database upon site load.

Link to comment
https://forums.phpfreaks.com/topic/172044-put-data-into-array-from-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.