Results 1 to 2 of 2

Thread: [RESOLVED] Caching pages html in files or in DB?

  1. #1
    Join Date
    Mar 2008

    resolved [RESOLVED] Caching pages html in files or in DB?

    Hey I want to know the advantages and disadvantages of saving the cached html of pages in the database versus saving them as files. I have about 1 million small pages I want to cache the html of. I have them all indexed by id. So I was thinking I could have a folder with 1 million html files, named 1.html, 2.html, etc. or Have a database with 2 fields, id and html. Which one is faster? What do other people do?

  2. #2
    Join Date
    Jul 2003
    The City of Roses
    Serving the file without using the database would certainly be faster. One of the reasons for page caching is to avoid a database connection where possible.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center