Thanks,
Disable all unnecessary log data
Moderator: Thorsten
Disable all unnecessary log data
I was looking at a phpMyFAQ DB that got very big. The .sql file took a while to open in Kate, and there was a huge amount of junk (adminlogs, access logs, captcha info...) I removed everything but I'd like to know how to disable these logs so that it doesn't fill up again 
Thanks,
Thanks,
Hi,
I suppose you're running PMF 1.6.6, let's see each of the tables:
Matteo
I suppose you're running PMF 1.6.6, let's see each of the tables:
- faqadminlog, go to the Edit configuration page and uncheck the use Adminlog? entry;
- faqsessions, go to the Edit configuration page and uncheck the use Tracking? entry;
- faqcaptcha, on each captcha image hit we remove data older than 1 week: you could tweak this setting opening the inc/captcha.php file, searching for the generateCaptchaCode() function and changing the call to the internal garbage collector to read the line below:in order to clear data older than 1 day.
Code: Select all
$this->garbageCollector(86400);
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Hi,

Matteo
That was the question of the userdicks wrote:Setting it in the configuration is one thing
Tables:dicks wrote:how do I now flush the admin entries (and others)?
- faqadminlog, you need to drop records manually;
- faqsessions, you can drop them on month-basis directly from PMF and the code will drop both records and traking data files;
- faqcaptcha, you don't need to drop them: just wait for the next captcha image hit.
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Hi,
Ciao,
Matteo
the "button" is already in the incoming PMF 2.0.0-beta: 1.6.x is features frozen, only bugs and security fixes will be addressed.dicks wrote:On (1), why not add a button to phpmyfaq to drop the tables?
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Hi,

A bit longer: We're trying to release it within the first half of December but nothing has been written to the stone. Please, track our devblog for being updated about progress and issues of 2.0.0-beta
Ciao,
Matteo
Short: When it will be readydicks wrote:Looking forward to 2.0 then. Any idea when it will be out of beta?
A bit longer: We're trying to release it within the first half of December but nothing has been written to the stone. Please, track our devblog for being updated about progress and issues of 2.0.0-beta
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist