Title: Dynamic Function with WP Cache
Last modified: August 18, 2016

---

# Dynamic Function with WP Cache

 *  [nluckett](https://wordpress.org/support/users/nluckett/)
 * (@nluckett)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/dynamic-function-with-wp-cache/)
 * Forgive me for my ignorance, but Ive been annoying people all over the web trying
   to figure out how to keep my search function dynamic once I use WP Cache on my
   site.
 * This was the code I was using to run my search function prior to installing wpcache:
 * <form style="padding: 0px; margin-top: 0px; margin-bottom: 0px;"
    id="searchform"
   method="get" action="<?php bloginfo(‘url’); ?>"><br> <input type="text" name="
   s" id="s" size="20" onfocus="this.value=”" value="<?php if (!$s) { $s = " -Search
   4cr-"; } echo $s; ?>" /><br> </form>
 * Ive tried putting the above code into a file called search.php and using the 
   mclude, but I just cant figure it out. Any help would really be appreciated! 
   Thanks.

Viewing 1 replies (of 1 total)

 *  [thugparlay](https://wordpress.org/support/users/thugparlay/)
 * (@thugparlay)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/dynamic-function-with-wp-cache/#post-238573)
 * Same problem. This is what I use:
    ` <!--mfunc get_useronline() --> <div id="
   useronline-count"><?php get_useronline(); ?></div> <!--/mfunc-->
 * But I get error:
    ` Fatal error: Call to undefined function: get_useronline()
   in /home/.irene/easydoesit/easydoesituniversity.com/wp-content/cache/wp-cache-
   6666cd76f96956469e7be39d750cc7d9.html on line 481

Viewing 1 replies (of 1 total)

The topic ‘Dynamic Function with WP Cache’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [thugparlay](https://wordpress.org/support/users/thugparlay/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/dynamic-function-with-wp-cache/#post-238573)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
