Clean old profile views ( days ):
I have it set to 1 day but the records are still kept in the db any ides why?.
Cron job is set right (New install.)
Clean old profile views ( days ): |
Actually this option is not used anymore - http://www.boonex.com/trac/dolphin/ticket/2657 To clean old views you need to change this line: define ('BX_OLD_VIEWS', 3*86400); // views older than this number of seconds will be deleted automatically in inc/classes/BxDolViews.php file, but it will prune all views objects, not only profile views. Rules → http://www.boonex.com/terms |
No no no.. that's not an option for me, anyway if its not used it shouldn't be there. } am i going the wrong direction lol.... |
The views are deleted on cron by the following code:
// clean old views bx_import('BxDolViews'); $oBxViews = new BxDolViews('', 0); $iDeletedViews = $oBxViews->maintenance (); But your code should work too, it will not interfere with above code, if your period is shorter than 3*86400 seconds.
No no no.. that's not an option for me, anyway if its not used it shouldn't be there. } am i going the wrong direction lol....
Rules → http://www.boonex.com/terms |
Ok sounds good ill give it a try. Thank you Alex |