due to some reason my hosting company isn’t able to fix if i use w3 total cache or w3 super cache for caching my site’s sql usage keeps on peaking…. and on high spikes servers gets laggy and down sometimes.
For that i have to use hyper cache plugin for cache as it works perfect, but this plugin doesn’t support cdn .. i have bought a cdn service from maxcdn but for that i wud have to use w3 total cache or super cache…
So i am looking for a way to automatically change the post images url from for example : http://www.sitename.com/wp-content/uploads….. to http://cdn.sitename.com/wp-content/uploads…
is it possible ? if yes please help.
Thanks in advance
5 Answers
You can parse via regex for images in the_content
; but is always load and slowly.
Maybe you change the url of images, after post_save
in database or change the current posts inside the database and create an custom CDN. Its the fast way and all caching plugins has the break, that she must parse the content.
For background an custom CDN in WP see this answer.