Create a PHP cache system in MySQL database?

Posted by Zach Smith on Stack Overflow See other posts from Stack Overflow or by Zach Smith
Published on 2010-05-27T22:11:40Z Indexed on 2010/05/27 22:41 UTC
Read the original article Hit count: 141

Filed under:
|
|
|

I'm creating a web service that often scrapes data from remote web pages. After scraping this data, I have a simple multidimensional array of information to use. The scraping process is fairly taxing on my server, and the page load takes a while. I was considering adding a simple cache system using a MySQL database, where I create one row per remote web page with a the array of information pulled from it stored as a JSON encoded string. Is this a good enough system? Or would something like a text file per web page be a better idea?

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql