• Resolved Suki

    (@sukinoz)


    Hello,

    When updating widgtes in the new Block-based Widgets Editor, cache is not auto-purged (so you have to empty it manually if you want to see the changes in the frontend)

    How to configure to auto-purge cache when updating Widgets?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please try add this to your theme’s functions.php

    function purge_widget_save( $array ) { 
    if (defined('LSCWP_V')){
    do_action( 'litespeed_purge_all' );
    }
    return $array; 
    }; 
    
    add_filter( 'widget_display_callback', 'purge_widget_save', 10, 1 ); 
    
    Thread Starter Suki

    (@sukinoz)

    It seems to work, thanks. but shouldn’t it be something included by default within the normal behavior of the plugin?

    Plugin Support qtwrk

    (@qtwrk)

    yeah , this should be addressed from plugin’s code , will advice our devs look into it.

    Thread Starter Suki

    (@sukinoz)

    great

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Purge when updating Widgets’ is closed to new replies.