Viewing 1 replies (of 1 total)
  • Plugin Author adeelkhan

    (@adeelkhan)

    Breeze clear cache with the following patterns
    For Varnish:
    Breeze_Admin->breeze_clear_varnish()
    Example:
    //clear varnish cache
    $admin = new Breeze_Admin();
    $admin->breeze_clear_varnish();

    For local static files:
    Breeze_Configuration::breeze_clean_cache()
    Example
    //clear static cache
    $size_cache = Breeze_Configuration::breeze_clean_cache();

    Other methods to clear “all cache” or “varnish cache”
    // for all cache
    do_action( ‘breeze_clear_all_cache’ )

    // for varnish
    do_action( ‘breeze_clear_varnish’ );

    for static cache, multiple functions need to be called

    //delete minify Breeze_MinificationCache::clear_minification();
    //clear normal cache
    Breeze_PurgeCache::breeze_cache_flush();`

Viewing 1 replies (of 1 total)
  • The topic ‘Clear cache programatically’ is closed to new replies.