Support » Plugin: WP Fastest Cache » Empty cache from WP-CLI

  • Resolved ërralb

    (@ierpe)


    Hi, I would like to add cache clearing to our deployment process, what command would you call to clear the cache with WP-CLI ?

    Kind regards,
    Pierre

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Emre Vona

    (@emrevona)

    I did not implement it. If you want, we can add it together.

    Hi, thanks for the answer.

    Ok, I saw in some of your previous releases that you made the plugin WP-CLI compatible…
    I’m a developer so ok I can help you create the feature. Do you have a github repo for the free version of the plugin?

    Plugin Author Emre Vona

    (@emrevona)

    I just added the following lines.

    if(defined('WP_CLI')){
    	$_SERVER["SERVER_NAME"] = isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : "";
            $_SERVER["SERVER_PORT"] = isset($_SERVER["SERVER_PORT"]) ? $_SERVER["SERVER_PORT"] : 80;
    			}

    Sorry I don’t follow you here, what do you mean with these lines?

    Plugin Author Emre Vona

    (@emrevona)

    I mean that there was a problem with server name and server port. I just fixed this issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Empty cache from WP-CLI’ is closed to new replies.