Skip to content
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

Wishlist hidden product cache not cleared on visibility change #17

Open
erik-perri opened this issue May 23, 2022 · 0 comments
Open

Wishlist hidden product cache not cleared on visibility change #17

erik-perri opened this issue May 23, 2022 · 0 comments

Comments

@erik-perri
Copy link

Can the hidden product cache be cleared when product visibility changes (yith_wcwl_hidden_products)? It is currently fixed to 30 days which caused an issue on a store that is only enabled once a year and hides their products in between the enabled periods.

I wasn't sure where you might want the hook to live, or if there was a reason you might not want the hook in general, so I held off on creating a PR for the change. I think the woocommerce_product_set_visibility hook can be used to know when to clear the cache.

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

No branches or pull requests

1 participant