How important is caching for a site's speed with PHP?
- by benhowdle89
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?