17488 Posts in 4473 Topics by 1978 members
| Go to End | Next > | |
| Author | Topic: | 5077 Views |
-
Disable statistics?

5 March 2008 at 3:56am
Hi, I'd like to disable statistics logging, but I can't find any information on how to do that. Suggestions?
-
Re: Disable statistics?

13 March 2008 at 3:15am
Hi, this worked for me - quick and dirty:
sapphire/core/control/ContentController.php
line 76 - public function init()
//Statistics::collect(); -
Re: Disable statistics?

27 March 2008 at 1:22am
Thanks!
I'm really starting to think that Silverstripe needs a basic control panel for stuff like this.
-
Re: Disable statistics?

27 March 2008 at 5:58am
Great tip. I agree that having a settings page would be nice, but it goes against what the developers want SS to be according to one of the pages in the community section.
Is there a way to remove the stats link all together in the admin panel?
-
Re: Disable statistics?

28 March 2008 at 3:26am Last edited: 28 March 2008 3:43am
I really think statistics should be a module apart from the standard package. Most people will might want to use other tools for that anyway and last time I checked the stat section was broken, i.e. getting huge out of memory errors (bug's already reported).
-
Re: Disable statistics?

28 March 2008 at 6:24am Last edited: 28 March 2008 7:08am
I would agree and I believe it is happening. I remember reading that the Stats and NewsLetter will become modules and removed from the core.
*Edit* Oh, and I found out how to remove it or any link from the admin panel from the good ol' documentation.
Add this to your mysite/_config.php file. Make sure you disable it first, or it'll still log everything and make your database larger.
Object::addStaticVars('LeftAndMain', array(
'removed_menu_items' => array(
'statistics',
)
)); -
Re: Disable statistics?

29 March 2008 at 4:32pm
its in the works, statistics will be an optional module thats not distributed with the core starting from 2.2.3 (see http://open.silverstripe.com/ticket/2145#comment:2)
-
Re: Disable statistics?

14 October 2008 at 10:10am
Hi, can this method (LeeUm above) be used to remove other menu items, ie Newsletters?
I tried this:
Object::addStaticVars('LeftAndMain', array(
'removed_menu_items' => array(
'statistics','newsletters',
)
));but it didn't work...any ideas?
| 5077 Views | ||
| Go to Top | Next > |




