PHP website Optimization

Posted by ana on Stack Overflow See other posts from Stack Overflow or by ana
Published on 2011-11-24T14:24:32Z Indexed on 2011/11/24 17:52 UTC
Read the original article Hit count: 360

I have a high traffic website and I need make sure my site is fast enough to display my pages to everyone rapidly.

I searched on Google many articles about speed and optimization and here's what I found:

  • Cache the page
  • Save it to the disk

Caching the page in memory:

This is very fast but if I need to change the content of my page I have to remove it from cache and then re-save the file on the disk.

Save it to disk

This is very easy to maintain but every time the page is accessed I have to read on the disk.

Which method should I go with?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about Performance