Sabuj Kundu on "[Plugin: WooCommerce] Woocommerce attributes lost when disabling Redis cache"

ساخت وبلاگ

whereskarlo
Member
Posted 3 months ago #

I have a problem that causes attributes added while Redis cache is tued on to disappear when Redis is tued off.

How to replicate:

1. Tu on Redis
2. Add an attribute for a product in Woocommerce
3. Tu Redis off
4. Refresh attribute list - your newly added attribute is gone
5. Tu Redis on again and the attribute reappears

Temporary work around:

1. Tu on Redis
2. Add attribute
3. Tu off Redis
4. Don't refresh attribute page, rather add another attribute. This causes Woocommerce to post all missing attributes to the system
5. Refresh attribute list - your newly added attribute appears still!

I asked on the Redis support forum and they said: The plugin only provides a WordPress object cache backend. I recommend you ask the WooCommerce support for assistance with this issue.

https://wordpress.org/plugins/woocommerce/

WordPress has it's own caching layer; are you sure you're not seeing pre-redis WP caching results? Add another attribute and see if both appear.

whereskarlo
Member
Posted 3 months ago #

Mike, after tuing off redis the attributes added while redis was on disappear. However after I added another attribute like you suggested the missing ones reappeared. Is there a reason for this? But more importantly, does it affect anything else except attributes?

I haven't noticed this issue with posts, classes etc but want to be sure so I don't loose/hide information by accident when tuing off redis for whatever reason. Thank you so much.

You're just seeing non-flushed cache. Obviously when enabled, your redis plugin only flushes its own caches, not the WP ones. Unless you're tuing it off and on regularly (why?) it won't be a problem.

whereskarlo
Member
Posted 3 months ago #

Is there a way to manually flush the WP cache since this might affect more than just attributes? I tu it off because it has interfered with the checkout process and caused endless spinners on shipping and payment options.

I faced near same issue and after searching for hours came to this post and found a hint and then solved, related https://www.facebook.com/groups/wordpressians/permalink/711837815621076/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 316 تاريخ : چهارشنبه 30 تير 1395 ساعت: 0:20