Title: WP-Cache mfunc problem
Last modified: August 19, 2016

---

# WP-Cache mfunc problem

 *  [Stefanie](https://wordpress.org/support/users/focusorganic/)
 * (@focusorganic)
 * [17 years, 12 months ago](https://wordpress.org/support/topic/wp-cache-mfunc-problem/)
 * I am using YARQ (Yet Another Random Quote plugin), and have set set up the mfunc
   comments around the php function call for it so it will not be affected by WP-
   Cache. When I load a page that has YARQ displayed, it loads fine, but if I click
   refresh, the quote, and everything beneath it in the sidebar, disappears, despite
   the mfunc comment being closed.
 * Here is the code in my sidebar for YARQ:
 * `<!--mfunc yarq_display()--><?php if (function_exists('yarq_display')) { yarq_display();}?
   ><!--/mfunc-->`
 * Did I do something wrong? Does anyone know why this is happening?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [Stefanie](https://wordpress.org/support/users/focusorganic/)
 * (@focusorganic)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/wp-cache-mfunc-problem/#post-736738)
 * Anyone?
 *  [Adam Lee](https://wordpress.org/support/users/adam-lee/)
 * (@adam-lee)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/wp-cache-mfunc-problem/#post-736751)
 * Bump.
 * I’m having the same issue and would also appreciate any suggestions.
 *  [siffring](https://wordpress.org/support/users/siffring/)
 * (@siffring)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/wp-cache-mfunc-problem/#post-736752)
 * I am having a similar issue. Has anyone successfully implemented mfunc around
   some dynamic content with wp-cache enabled?
 *  [the-rocker](https://wordpress.org/support/users/the-rocker/)
 * (@the-rocker)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wp-cache-mfunc-problem/#post-736790)
 * Hi, the problem is that you have to put a blank space before “mfunc” and “/mfunc”
   and after them. Like this:
 * <!– mfunc yarq_display() –><?php if (function_exists(‘yarq_display’)) { yarq_display();}?
   ><!– /mfunc –>
 * I think this should resolve the problem 🙂
 *  [wvoelcker](https://wordpress.org/support/users/wvoelcker/)
 * (@wvoelcker)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wp-cache-mfunc-problem/#post-736814)
 * The wp-cache readme file is misleading on this, which is a bit silly.
 *  [wvoelcker](https://wordpress.org/support/users/wvoelcker/)
 * (@wvoelcker)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wp-cache-mfunc-problem/#post-736815)
 * AH – if you put spaces into the comments, as suggested by the RockeR, then I 
   think all that does is turn the mcfunc comments into normal comments (i.e. stops
   wp-cache parsing them at all).
 * However, I’ve just managed to get this working, and it seems the solution (for
   me) was to make sure the functions I was calling are loaded BEFORE wp-cache, 
   which I achieved by moving them to the bottom of this file:
 * /wp-content/advanced-cache.php
 * Cheers

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WP-Cache mfunc problem’ is closed to new replies.

## Tags

 * [mfunc](https://wordpress.org/support/topic-tag/mfunc/)

 * 6 replies
 * 5 participants
 * Last reply from: [wvoelcker](https://wordpress.org/support/users/wvoelcker/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/wp-cache-mfunc-problem/#post-736815)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
