Speed up Dynamically Generated PHP Sites by Caching

Steps Involved

  • Connect to an MySQL Database
  • Request recent items from database
  • Sort items with recent items at the top
  • Open the items according to your markup template design
  • Keep the File as Cache for future requests
  • Output the furnished page to the user

On subsequent requests check for the cache file if exist and the content is not modified yet directly present the data instead of iterating the above steps.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s