W3 Total Cache, CDN and Custom Post Types

The answer was to get http://wordpress.org/plugins/wp-regex-replace/ and simply replace the full absolutely path to the wp-content/uploads folder.

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