Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

WP-CLI differences between 0.9.4.x and 0.9.5.x #492

Closed
twiginteractive opened this issue May 25, 2017 · 7 comments
Closed

WP-CLI differences between 0.9.4.x and 0.9.5.x #492

twiginteractive opened this issue May 25, 2017 · 7 comments
Labels

Comments

@twiginteractive
Copy link

Hi! I worked with you on adding the great cache 'prime' feature to the WP-CLI for the 0.9.4.x branch, and I love it. Recently, I started a new project and thought I'd use the newer 0.9.5.x branch - but now I seem to have lost the prime command.

Doing wp help w3-total-cache on the two environments returns different info: the 4.x has the prime command listed, but the 5.x line doesn't. I can see from the .5.x changelog that the feature should still be there. Am I missing something?

Thanks!

@nigrosimone
Copy link
Collaborator

nigrosimone commented May 25, 2017

Strange... @amiga-500 has implemented the feature in the #324 maybe , has she missed to update help?

if you call:
wp w3-total-cache prime

what happens?

@twiginteractive
Copy link
Author

Hi @nigrosimone - as expected, it returns the correct command prompt in 4.x branch, and the error "prime is not a function" for the 5.x branch.

@nigrosimone
Copy link
Collaborator

nigrosimone commented May 25, 2017

Hi, i have just downloaded the master and on my env (windows) it works:

immagine

@twiginteractive
Copy link
Author

Hmm ok. Let me install it on my sandbox and check. I'm hoping this is an error on my side - I can't believe it would have slipped through this long!

@nigrosimone
Copy link
Collaborator

All right, keep me updated on everything to do with this case.

@twiginteractive
Copy link
Author

Welp you can put this down to user error :)

Turns out I had a config.yml in the ~/.wp-cli folder that was setting the path to WP to the Prod install (not the Dev install I was actually in). Prod currently has the original W3TC plugin (not this community version) in it! That would explain the lack of prime function.

Sorry for the unnecessary fire-drill.

@nigrosimone
Copy link
Collaborator

Hey, no problem! you are welcome!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants