-
Notifications
You must be signed in to change notification settings - Fork 17
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
3rd Party Plugin Compatibility: WooCommerce + Reduce Order Stock #597
Comments
I'm having issues with this on my website at the moment. Stock levels are often out of date and I don't know what to do about it. Clearing the cache frequently isn't an option either because then the site is too slow. Is there any workaround to get it to re-cache product pages when stock levels are updated? |
@mastermikeywwt We don't have an immediate answer, unfortunately. Is there a way? Yes, I'm fairly certain there is, but it will require some research and digging into the WooCommerce codebase. That will happen whenever this gets added to a development cycle. We prioritize bugs over everything else, and then it mostly goes by interest. The more votes this issue gets, the more quickly we can spend time digging into it. :-) If you dig in and have anything to share, please let us know--that might make closing this a bit easier. |
Hey sorry is there any update on this? We're still having the same issue unfortunately. Products stock levels change very frequently so its almost impossible to keep up with. I'd love to help but unfortunately I don't think I have the skills to. |
@mastermikeywwt Improved WooCommerce compatibility to auto-clear the Product cache file when stock changes is coming in the next release; see wpsharks/comet-cache-pro#191 If you're interested in testing a beta release of ZenCache before the next version comes out, please sign-up to be a beta tester here or see ZenCache → Plugin Updater → Beta Testers to automatically receive Release Candidate updates (available since ZenCache Pro v151114). |
Next Pro Release Changelog:
|
This doesn't seem to be working for me still for some reason. are there any special options I need to enable in the new version to enable this feature? |
@mastermikeywwt The new version has not been released yet. We're targeting that for end of next week. If you're interested in testing a beta release of ZenCache before the next version comes out, please see my comment above: #597 (comment) |
Its the beta I'm testing at the moment |
@mastermikeywwt There is no beta released that includes the work from this issue. We're anticipating the next RC release by end of the day tomorrow. |
Ah right I see. Apologies for the misunderstanding. Will the new release include the required update to PHP 5.4? I still need to do this on our server you see. |
Yes, the next release will require PHP 5.4 or higher. |
Hey sorry to keep messaging about this but I'm still waiting on that RC release. Any ideas when that might be out? :) |
@mastermikeywwt Within the next 24 hours. :-) We had a bug that held up the RC but we're past that now; it will be out soon. Thanks for your patience! |
Thankyou. Just getting difficult manually clearing the cache of pages when we sell stock. We're so busy this year its unreal :O. |
@mastermikeywwt The ZenCache Pro RC, which includes the improved WooCommerce compatibility, has been released. 😄 See http://zencache.com/zencache-pro-v151216-rc-release-candidate/ |
I've installed the new version and it appears to work pretty well. I do have a request though (A rather important one for us). While the cache does clear on the page when an order is placed on the website, it doesn't clear the cache when there is a stock update in the backend. For instance we link our site stock levels to our shop floor. When we sell something there is pushes the new stock levels to WooCommerce. When this happens the cache is not cleared. Is there any way you could trigger the cache of the pages to clear when there is a feed update? In the mean time is there a way of clearing the cache regularly and having it recache those same pages immediately after? I've tried using the sitemap feature but we actually have more than 1 sitemap. |
@mastermikeywwt writes...
How are you linking the site stock levels to your shop floor? ZenCache hooks into WooCommerce via the do_action( 'woocommerce_product_set_stock', $this );
To use the ZenCache API to clear the cache dynamically, see: |
It updates the column in the database using MySQL as I understand. Is there anyway to clear the cache around this? I'll look into that link as that may be a good workaround for now :) |
You'll need to add some code to whatever script updates the database so that it also fires the |
Perfect thankyou. I'm the case with them now. Its a company called Veeqo. Its basically manages sales across several channels like ebay, Amazon, WooCommerce. Hopefully they sort it for me. Sounds like this is the proper way to push stock levels |
ZenCache Pro v151220 has been released and includes changes worked on as part of this GitHub Issue. See the release announcement for further details. This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#597). |
WooCommerce has some compatibility for WordPress caching plugins via the
DONOTCACHEPAGE
constant, however there is room for improvement. For example, one user reported that "when the website has a shop order and the stock is reduced, the cache for that product isn’t cleared resulting in stale stock levels being used / displayed".There may be WooCommerce hooks that we can attach to (such as
woocommerce_reduce_order_stock
) that will improve compatibility with WooCommerce.This GitHub issue exists as a place to track improvements to compatibility between ZenCache and WooCommerce.
The text was updated successfully, but these errors were encountered: