• Resolved newwper3

    (@newwper3)


    Hi,

    May I know which features require aiowps_global_meta table?
    Is it safe to clean it?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, yes it is safe to clean this table. The following is an explanation provided by one of the developers in a forum post.

    Solution 1: The plugin has a code which will periodically check the tables created by aiowps and it will cleanup any table which has more than 5000 rows, ie, the code will delete the oldest rows and keep the newest 5000. The “5000” rows is set as a default in the code but I have also added filters for this to allow you to be able to set your own value.

    The filters can be found in the wp-security-backup.php file in the function called aiowps_scheduled_db_cleanup_handler.

    The cleanup process is triggered once daily using the inbuilt WordPress “wp_schedule_event”.

    One way to trigger the cleanup process immediately is to deactivate and activate the aiowps plugin which should kick off the scheduled event.

    Solution 2: To use the filters you should not edit any of this plugin’s files but instead you will need to add some code to your theme’s functions.php file.
    For example:

    add_filter( 'aiowps_max_rows_event_table', 'change_table_rows_remaining', 10, 1 );
    add_filter( 'aiowps_max_rows_failed_logins_table', 'change_table_rows_remaining', 10, 1 );
    add_filter( 'aiowps_max_rows_login_attempts_table', 'change_table_rows_remaining', 10, 1 );
    add_filter( 'aiowps_max_rows_global_meta_table', 'change_table_rows_remaining', 10, 1 );
    
    function change_table_rows_remaining( $rows ) {
    	return '1000';
    }

    Let me know if you need more help.

    Thank you

    Plugin Contributor wpsolutions

    (@wpsolutions)

    Hi @newwper3
    That table stores the file change detection data and other miscellaneous things such as unlock request keys for cases when someone is using a woocommerce login page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘aiowps_global_meta’ is closed to new replies.