How important is caching for a site's speed with PHP?

Posted by benhowdle89 on Stack Overflow See other posts from Stack Overflow or by benhowdle89
Published on 2011-03-03T15:14:41Z Indexed on 2011/03/03 15:25 UTC
Read the original article Hit count: 235

Filed under:
|
|
|

I've just made a user-content orientated website http://www.humanisms.co.uk

Its done in PHP, MySQL and jQuery's AJAX, at the moment there is only a dozen or so submissions and already i can feel it lagging slightly when it goes to a new page (therefore running a new mysql query)

Is it most important for me to try and optimise my mysql queries (by prepared statements) or is it worth in looking at CDN's (amazon s3) and caching (much like the WordPress plugin WP Super Cache) which works by serving static HTML files when there hasnt been new content submitted.

Which route is the most beneficial, for me as a developer, to take, ie. where am i better off concentrating my efforts to speed up the site?

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql