Title: Cache for php in plugins&#8230;
Last modified: August 20, 2016

---

# Cache for php in plugins…

 *  [AHWEBDEV](https://wordpress.org/support/users/ahwebdev/)
 * (@ahwebdev)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/cache-for-php-in-plugins/)
 * 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 ?

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/cache-for-php-in-plugins/#post-2269258)
 * Fragment cache logic is executed before the entire WP core is loaded so the logic
   you have there won’t work unfortunately.

Viewing 1 replies (of 1 total)

The topic ‘Cache for php in plugins…’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/cache-for-php-in-plugins/#post-2269258)
 * Status: not resolved