-
Notifications
You must be signed in to change notification settings - Fork 47
add clear template cache tool #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -538,6 +551,11 @@ public function execute_tool( $tool ) { | |||
$message = __( 'Database upgrade routine has been scheduled to run in the background.', 'woocommerce-rest-api' ); | |||
break; | |||
|
|||
case 'clear_template_cache': | |||
wc_clear_template_cache(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should add a function check for wc_clear_template_cache
here and return an error if it does not exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a minor comment which should be addresssed, other than that looks good. Also would need to fix conflicts before merge.
@vedanshujain This is ready for another review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!! 🙌
Note this needs woocommerce/woocommerce#26752 merged to work.
Use testing instructions from woocommerce/woocommerce#26752.
Test failures are not related to this PR.