WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Cache for php in plugins... (2 posts)

  1. AHWEBDEV
    Member
    Posted 2 years ago #

    Hi,

    I work on the plugin Faceboook AWD

    I have a function in my plugins that is cailling in wp_footer();
    with an action add_action('wp_footer',array($this,lalala))

    How can i exclude this fucntion from cache ?
    I try the

    <!--MFUNC -->
    function lalala(){
    }
    <!--/mfunc -->

    That's not working.
    Can you help me ?

  2. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Fragment cache logic is executed before the entire WP core is loaded so the logic you have there won't work unfortunately.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic