I just dug a little further and inside the folder WP-content/W3TC/min is a java file with the following code
amazon_ad_o = 1;
amazon_ad_rcm = "rcm.amazon.com";
amazon_ad_linkcode = "op1";
document.write("<scr"+"ipt src='"+window.location.protocol+"//www.assoc-amazon.com/s/ads-common.js' type='text/javascr"+"ipt'></scr"+"ipt>");
Is this something that someone inserted into my server, or is this part of the W3TC code?
That amazon URL matches the URL found within the iframe code I’m seeing inserted when minify is turned to Manual
Also I deleted the file from the folder, as soon as I reactivate Minify Manual mode the file is generated. Also this file generation occurs BEFORE I even clear Minify Cache.
Ran Minify in debug mode and got the following information as well
<!-- W3 Total Cache: Minify debug info:
Engine: memcached
Theme: 8c780
Template: single
Replaced JavaScript files:
1. http://www.assoc-amazon.com/s/ads.js
-->
When running in Auto mode I get the following
<!-- W3 Total Cache: Minify debug info:
Engine: memcached
Theme: 8c780
Template: home
Replaced CSS files:
1. wp-content/plugins/slimbox/stylesheets/jquery.slimbox.css
2. wp-content/themes/arras/css/styles/legacy.css
3. wp-content/themes/arras/css/layouts/2c-r-fixed.css
4. wp-content/themes/arras/user.css
Replaced JavaScript files:
1. wp-includes/js/jquery/jquery.js
2. wp-content/plugins/slimbox/javascript/jquery.slimbox.js
3. wp-includes/js/swfobject.js
4. wp-content/themes/arras/js/superfish/hoverIntent.js
5. wp-content/themes/arras/js/superfish/superfish.js
6. wp-content/plugins/powerpress/player.js
7. wp-includes/js/jquery/ui/jquery.ui.core.min.js
8. wp-includes/js/jquery/ui/jquery.ui.widget.min.js
9. wp-includes/js/jquery/ui/jquery.ui.tabs.min.js
10. wp-content/themes/arras/js/jquery.cycle.min.js
11. wp-content/plugins/wp-retina-2x/js/retina.js
-->
Seems that Amazon couples multiple ad codes within some embeds, and java minification must have caused a conflict causing the ad to display.
Plus due to what I think was browser caching even with the script removed from the list it wasn’t truly removed, hence when removing the amazon code the script continued to load.