Si usáis el W3 Total Cache como plugin de cache en vuestro wordpresss, observareis que al final de vuestro código fuente inserta un comentario html muy similar a este:
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/ Minified using disk: basic Page Caching using disk: enhanced (Cookie is rejected) Database Caching using disk: basic (Cookie is rejected) Object Caching 1623/1627 objects using disk: basic Served from: www.bufa.es @ 2013-03-15 20:39:08 by W3 Total Cache -->
Para poder eliminar este comentario html que genera la función ob_callback del W3 Total Cache, debemos editar el archivo:
/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php
Y buscar la siguiente línea (en mi caso en la línea 205) y comentarla de esta manera:
if ($this->can_ob()) { /* ob_start(array( &$this, 'ob_callback' )); */ }
Por último necesitas volver a «vaciar el cache» para ver el resultado ya en tu código fuente.
Agradezco tu comentario 🤘