Plugin Contributor
iSaumya
(@isaumya)
I don’t know how the Dokan plugin works, but according to your settings if you change any product quality/price in your WooCommerce dashboard that should purge the cache.
Unfortunately, I cannot ask you to share any private details in any private ways as that is against WordPress community guidelines.
Can you maybe record a screencast and show the issue?
Hello, Thanks a lot for your interest.
Listen I created a pic explaining what happens.
https://ibb.co/vQRd5C2
The left side is the Dokan Panel for vendors on where they can edit product
I edited there a product called: Red Wine Free at € 1.50
In the middle, there is what the user see using Chrome/Mobile/ with disable Cache
You can see there “Calice di Vino at 1.50” it was the old name.
On the right side what I see for this product from my admin woocommerce panel.
The product is Red Wine Free at € 1.50 as I have done on Dokan.
So, on the Dokan and Woocommerce, I can see the product edited.
In reality, the user still sees the old product name.
I tried also using my Huawei Mate Pro 20 in incognito mode.
If I purge the cache I see in all three the same contents but, if I update the name or price again, this change does not appear in reality.
Hope you will find a way to use your plugin.
The speed rank of my website has improved a lot with your plugin.
Let me know, please.
Enrico
Plugin Contributor
iSaumya
(@isaumya)
Look from what you have said it seems like the Dokan thing is using WP API to update the WooCommerce product details, but inside the plugin we are listening to WooCommerce actions, like when you click update on the woocomerce order page, you will see that the product cache is getting cleared.
But it seems when Dokan is updating the product via API it is not firing those actions for the plugin to know that the product has been updated.
These are the WooCommerce actions the Plugin are monitoring:
woocommerce_updated_product_stock
wc_after_products_starting_sales
wc_after_products_ending_sales
Can you try something. Let’s say up update a product on Dokan, then inside WooCommerce dashboard it shows correctly but you Click on the Update button again inside WooCommerce, does that purge the cache for that product?
Hi, wonderful support!
Following your suggestions I have done this test:
I updated a product using the Doakn Vendor Panel at 16:41
I reloaded the same product using Woocommerce and I have seen the modify at 16:41
I reloaded the vendor public store until 16:47 without seeing the modify.
I have done this using chrome in a normal and incognito mode.
Then I just hit – as you suggested – the product update button on Woocommerce at 16:48
I have seen on the vendor public store the product updated at 16:49.
Not immediate but closer.
I hope you have some ideas on your mind to fix this issue! 🙏
Enrico.
Following this thread I have made another test:
I just updated the product from my woocommerce panel admin at 16:55
I reloaded the public store until 16:58 without seeing the update I have done.
Then reloading on 16:59 I have seen my update.
uhm.. probably because is set somewhere in some browser cache set
note:
reloading the dokan vendor panel I have seen immediately my update
Plugin Contributor
iSaumya
(@isaumya)
It’s never gonna be immediate. Purging cache takes a minute or two.
But in this case, I have no idea how to solve this. As I said the product is being updated via API which is not invoking any update function.
Let me see if something can be done. I will try to write a patch for this and will share the plugin code, you need to try that and confirm if it worked or not.
But then again I am not 100% sure.
Ok, Bro,
Thanks a lot for your support. 🙏
Hi, updating this tread,
I am trying a menu (food) plugin who generates these urls:
……/wp-admin/edit.php?post_type=erm_menu
to opening the menu
……/wp-admin/post.php?post=12150&action=edit
to opening the single dish
……/wp-admin/post.php?post=12150&action=edit&message=1
to update the modify I have done
Now I created a role to permit to the users to update their menu.
Unfortunately your script do not clean the cache if a user update their menù but I have seen on the menu panel as admin the “purge CF Cache” button: https://ibb.co/cXC7G2r that maybe could help me to fix this issue giving the possibility to the user to purge the cache of that menu themself.
Unfortunately, on their role (store manager) panel, that button (purge CF Cache) doesn’t appear! Do you have a fix or method to show the button also for them? Would be probably a good fix per what I need.
Thanks for your job. Good plugin!
Plugin Contributor
iSaumya
(@isaumya)
Hi,
When you update the menu the plugin will not automatically Purge the cache. You can give the users permission to purge the cache by selecting their role in the Plugin Settings > Others tab > Select user roles allowed to purge the cache
Screenshot: https://i.imgur.com/7MUZPz2.png
Hi,
I found the tab you told me and I started to test this function.
It seems it works very fine even if I need to test a little bit.
Before your plugin my website was classified “E” from gtmetrix
With your plugin activated and some sets is classified as “A” now!
Great job!
I go ahead to test. Thanks a lot for your help.
Hello, thanks for what you are doing.
Listen, on the plugin panel, in the Other Tab,
Select user roles allowed to purge the cache
I selected the role shop_manager because as I told you I need to give this function to the store owners to clean the cache when they update some dishes.
Unfortunately, the button is disappeared: https://ibb.co/S5VbsL3
Do you have some suggestion/tips on how to show it?
Thanks, sorry for this stupid question, but I need to implement it.
Thanks.
Plugin Contributor
iSaumya
(@isaumya)
The users who are login are they actually store manager? Have you checked the Users section inside the WP Admin to check exactly what their user role is?
Hi Thanks for you reply.
I checked and I almost sure to have selected the right role.
If you see the screenshot: https://ibb.co/p0FbWhv
You will see that CF Cache is present on the upper left.
If I deselect on Other Tab the shop_manager role I do not see that icon anymore.
If I select that rule again, the icon on the upper left appears again.
I tried also to enable on Other all the roles without to see the button.
My problem is that I am working on mobile project with a limited space.
The button on the upper left I see has this style
li#wp-admin-bar-wp-cloudflare-super-page-cache-toolbar-container
I can try to move it into my mobile view.
Or if you have some more tips.
Thanks for you help.
Set on plugin: https://ibb.co/f07jwGf
Set of the role: https://ibb.co/Pc6fWrZ
I am crazy to fix this!
Plugin Contributor
iSaumya
(@isaumya)
The button on the upper left I see has this style
li#wp-admin-bar-wp-cloudflare-super-page-cache-toolbar-container
I can try to move it into my mobile view.
– You can definately add a custom CSS in the admin side to overwrite the CSS the plugin is adding to position the button where you want.