• Resolved davidhorizon

    (@davidhorizon)


    Hello,

    I have a website with beaver builder (a visual composer) and there are some features which aren’t updated when saving content. I did like to delete cache with some action hook available in beaver but I don’t know how to purge cache with PHP. Is it possible ?

    Regards,

    David.

    PS : great plugin, I use it almost everywhere ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Raul P.

    (@alignak)

    Hi!

    By default, FVM purges the cache after an upgrade or new plugin/theme installed, or at the press of a button.

    If you need to purge it automatically from PHP, you could do this somewhere inside the action where you want it to purge the cache:

    # purge FVM cache and supported cache plugins
    if(function_exists('fvm_purge_all')) {
        fvm_purge_all();
    }
    Thread Starter davidhorizon

    (@davidhorizon)

    Ok, TY.

    I will try this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Purge cache with PHP ?’ is closed to new replies.