Caching with dynamic content

Looks like I solved this. Found this very good tutorial/extension for W3TC http://www.xoogu.com/dynamic-shortcodes-extension-for-w3-total-cache
I have tried this out and it works wonderfully and the difference is nice. Got a much better score on Pingdom speedtest.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)