Skip to content

fix: change deprecated incr_cache_prefix - #598

Merged
kidunot89 merged 1 commit into
wp-graphql:developfrom
fabiojundev:fix-deprecated-method
Jan 25, 2022
Merged

kidunot89 merged 1 commit into
wp-graphql:developfrom
fabiojundev:fix-deprecated-method

Conversation

@fabiojundev

@fabiojundev fabiojundev commented Jan 21, 2022 •

Copy link
Copy Markdown
Contributor

Your checklist for this pull request

Thanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.

🚨Please review the guidelines for contributing to this repository.

  • Make sure you are making a pull request against the develop branch (left side). Also you should start your branch off our develop.
  • Make sure you are requesting to pull request from a topic/feature/bugfix/devops branch (right side). Don't pull request from your master!
  • Have you ensured/updated that CLI tests to extend coverage to any new logic. Learn how to modify the tests here.

What does this implement/fix? Explain your changes.

This PR only changes one method to another the suggested one.
https://woocommerce.wp-a2z.org/oik_api/WC_Cache_Helper::incr_cache_prefix/

Does this close any currently open issues?

No.

Any relevant logs, error output, GraphiQL screenshots, etc?

The error message:
[fatal error]: 'WC_Cache_Helper::incr_cache_prefix is deprecated since verion 3.9.0! Use WC_Cache_Helper::invalidate_cache_group instead.'

Any other comments?

Simple modification.

Where has this been tested?

  • WooGraphQL Version: 0.10.6
  • WPGraphQL Version: 1.6.11
  • WordPress Version: 5.8.3
  • WooCommerce Version: 6.1.0

method to invalidate_cache_group
@kidunot89
kidunot89 self-requested a review January 25, 2022 18:14
@kidunot89
kidunot89 merged commit bfbeb0d into wp-graphql:develop Jan 25, 2022
@kidunot89 kidunot89 added the bugfix Implements bugfix label Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Implements bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants