• Hi, I have a multisite with 2 sites and 1 DB. The directory is only one for both sites.

    In the DB the 2 websites have tables in common and tables with a different prefix.

    if I run wp sweep --all does it clean all the websites?

    Considering that probably the command line will clean only the master website, is there a way to clean the second website via command line?

    If it is not supported, kindly could you implement a feature to manage the multisite?

    For example, if I want to install a plugin I can use

    wp plugin install <name-plugin> --activate-network

    The option --activate-network manages the activation for the multisite.

    Let me show you what I get for the multisite

    wp sweep --all
    Success: 1 Auto Drafts Processed
    Success: 61 Transient Options Processed
    Success: 42 Orphaned Post Meta Processed
    Success: 51 Tables Processed
    Success: 1 oEmbed Caches In Post Meta Processed
    Success: Sweep Complete

    The number of Tables processed is the total for all the websites.

    Thank you very much for your support.

    Kind regards

    G. Aloe

    • This topic was modified 5 years, 10 months ago by jscmal.
    • This topic was modified 5 years, 10 months ago by jscmal.
    • This topic was modified 5 years, 10 months ago by jscmal.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Sorry, I can’t answer that question because I don’t run MultiSite and WP-CLI is contributed by one of my users https://github.com/lesterchan/wp-sweep/pull/33.

    I will leave this open for others to chime in (if any).

    Thread Starter jscmal

    (@jscmal)

    Hi Lester, thanks for your answer, I added a comment in the github post you shared.

    But, why don’t consider to add a scheduling feature to the plugin that can execute the cleaning 1 time per day?

    Kind regards

    G. Aloe

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp-cli on a Multisite with 1 Data Base and 2 different Table Prefixex’ is closed to new replies.