[SOLVED] Remove statistics comment at the end of each file/render

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
simplesimon
Forum Members
Forum Members
Posts: 17
Joined: Thu Jul 09, 2009 8:35 am

[SOLVED] Remove statistics comment at the end of each file/render

Post by simplesimon »

I want to get rid of the comment at the end of each render including the back end. It looks like this:

Code: Select all

<!-- 0.128189 / 52 / 13759184 / 14225264 -->
Can some one/dev please tell me what code to comment out. I assuming there is not a toggle switch for this somewhere.

The reason I want to do this is to make a pure text file/render. It's for a site map.

Thanks!
Last edited by simplesimon on Thu Oct 01, 2009 8:23 am, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Remove statistics comment at the end of each file/render

Post by jmcgin51 »

asked and answered:

forum.cmsmadesimple.org/index.php/topic,37395.0.html
simplesimon
Forum Members
Forum Members
Posts: 17
Joined: Thu Jul 09, 2009 8:35 am

Re: Remove statistics comment at the end of each file/render

Post by simplesimon »

Excellent! Hopefully now it will show up in the search, as a I was actually looking for that info and the poster in the other thread had a different problem.

So here it is:
edit config.php
add

Code: Select all

$config['hide_performance_info'] = true;
So setting it to false also does the same thing ATM, but you need to set it to something. I would suggest setting it to true in case this gets cleaned up in the future.

Many thanks, jmcgin51!
Post Reply

Return to “CMSMS Core”