Deleted Records Manager - Automatic / CRON?
#1
Deleted Records Manager - Automatic / CRON?
Hi there.

Is there any way to set up a cron task or any other way to automatically delete records which have been removed.

I fail to understand the use of having deleted records anyway, does anyone have any idea why it would be useful?, maybe only for a recovery feature.. but I am yet to see that in any modules or planned modules.

I've recently been implementing with WHMCS and multiple servers, working very well, but having a bunch of problem when needing to re-register clients due to records existing and considering I have multiple servers, it's a real pain to login to each one and clear the records.

Any automation for this?

Thanks!
Reply
#2
RE: Deleted Records Manager - Automatic / CRON?
It is done by design. (To keep deleted records.) There are many reasons, one of the most important is to keep track of who/what was on your server for legal purposes to help protect yourself. It is also there to prevent spammers from re-registering, etc. There is no cron created to remove these entries.

I suppose you could make a cron to do this, but it is not recommended.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#3
RE: Deleted Records Manager - Automatic / CRON?
(01-17-2018, 12:30 AM)TGates Wrote: It is done by design. (To keep deleted records.) There are many reasons, one of the most important is to keep track of who/what was on your server for legal purposes to help protect yourself. It is also there to prevent spammers from re-registering, etc. There is no cron created to remove these entries.

I suppose you could make a cron to do this, but it is not recommended.

I suppose that makes sense, although, surely a log would be better instead of database entries. Anyway, I wouldn't know the best way to set up a cron without blowing up my entire installation.. any ideas?

I'm familar with cron, just wouldn't know how to program it.

ALSO, on the subject of CRON, I've NEVER figured out how to use the cron section of sentora panel to run lets say:


Code:
*/5 * * * * php -q /var/sentora/hostdata/userabc/public_html/domainname/crons/cron.php

Could you be as kind to advise how to do this? I've just been using crontab, which is fine.. but you know, would be nice to figure out the panel side too.
Reply
#4
RE: Deleted Records Manager - Automatic / CRON?
#491
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#5
RE: Deleted Records Manager - Automatic / CRON?
(01-17-2018, 01:01 AM)TGates Wrote: #491

Thanks man, how about the cron that I should be running to clear deleted records?
Reply
#6
RE: Deleted Records Manager - Automatic / CRON?
You could pick parts of the Deleted Records module to make a cron file to do the work. (copy and paste?)
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
File Manager Module Error thehosterx 15 46 ,197 11-19-2017, 02:41 AM
Last Post: TGates
File Manager ams10030 1 6 ,937 07-04-2017, 06:05 PM
Last Post: Me.B
File manager - Sprut.io insha 2 10 ,680 06-28-2016, 09:56 AM
Last Post: AlexeyRed

Forum Jump:


Users browsing this thread: 1 Guest(s)