• Resolved Thomas Jarvis

    (@thomasjarvisdesign)


    I am the admin for a woocommerce shop where the client does not have full admin rights. The customer has shop manager permissions.

    Is it possible to add the Purge Cache admin bar button for shop managers or other user permission levels so that when they delete products they can update the site fully?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    This isn’t currently possible.
    If the full site’s cache needs to be purged every time a product or post is updated / created, you can use the following snippet in order to make this happen (instead of purging only the updated post):

    add_filter( 'wpo_purge_all_cache_on_update', '__return_true' );

    Regards,
    Marc.

    Thread Starter Thomas Jarvis

    (@thomasjarvisdesign)

    Thanks Marc,

    I may have to implement this. Simple enough

    Basically for WooCommerce Sites – When a product is deleted, the item does not get removed from the category, or tag archive pages or the main shop page cache.

    This means the product is still visible in the shop but a 404 error is delivered because the page has been removed.

    Not sure if it’s possible to raise a feature request here – Extra logic for WooCommerce:

    If woocommerce is installed –
    A – When a shop entry is edited. Purge the shop, prod cat and prod tag archive caches?
    B – When a shop entry is deleted. Purge the shop, prod cat and prod tag archive caches?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allow Purge Cache for Shop Managers’ is closed to new replies.