Custom Fields
Re-Envisioned
Support Meta Box AIO dbDelta shouldn't be executed on every page load

  • Creator
    Topic
  • #28825
    Resolved AXEL PARATRE
    Participant

    Hi,

    On some server configuration alter table can be very long -> https://ibb.co/G3x5083

    in loader.php (vendor / meta-box / mb-relationships / inc )
    /**
    * If plugin is embed in another plugin, the table is not created during activation.
    * Thus, we have to create it while initializing.
    */
    if ( ! $this->is_table_created ) {
    $this->create_table();
    }

    "is_table_created" doesn't seem to work as it should. You should add an option value like
    update_option('mb_is_table_created', 1); when create_table function is successfully executed.
    and change init function with :
    if (get_option('mb_is_table_created', true) {
    $this->is_table_created = true;
    }

    Hope it will help.

    Regards,

    Axel

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #28838
    Long Nguyen
    Moderator

    Hi,

    Thank you for your feedback.

    I've escalated this case to the development team to improve the code to prevent execute the function create table on load every time.

    #29501
    Long Nguyen
    Moderator

    The option is added in the new version of MB Relationships 1.10.6 and MB AIO 1.14.1

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.