WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] mclude/mfunc not working (8 posts)

  1. sojweb
    Member
    Posted 6 years ago #

    I'm using WP Super Cache v0.5.4, and it works fine unless I want to make portions of the page dynamic. If I use with the mclude or mfunc tag, the page loads as it should the first time, then breaks every time after that; it just stops loading right after the mclude/mfunc tag. I'd really, really like to be able to do this, can anyone point me in the right direction towards a resolution?

  2. Donncha O Caoimh
    Member
    Posted 6 years ago #

    Disable the super cache part of the plugin and it should work fine!

  3. sojweb
    Member
    Posted 6 years ago #

    Sorry for the late reply; thanks for responding! I've tried disabling the super cache part but the same thing happens. The weird part is, if I open the cached file and then save it (without making any changes), then it works as it's supposed to: the page is served from cache with the dynamic part included... but only if I change the modified date on the cached file. What might be going on? Maybe something else in the system interfering with super-cache?

  4. sojweb
    Member
    Posted 6 years ago #

    For the record, I'm running it on OS X Server, Apache 2.2, and PHP 5.2. I'm also getting different behavior depending on whether I'm logged into WordPress or not (sometimes it loads the page without the include, sometimes it just halts at the include), so I'm going to do some experimenting to see if I can narrow down exactly what's happening.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    When you disabled the super cache part, did you also delete the super cache files? Empty the cache whenever you make any changes to it.

  6. sojweb
    Member
    Posted 6 years ago #

    Yeah, I always click the 'Delete cache' button.

  7. sojweb
    Member
    Posted 6 years ago #

    Okay, I think the problem was buried in the code I was including and didn't have to do with Super-Cache... if a PHP error is generated by a dynamically included file, is it logged? I don't see anything in my error logs.

  8. sojweb
    Member
    Posted 6 years ago #

    Got it: had a call to an out-of-scope function that was halting execution... works great now. Thanks, guys! Though I would still like to know how or whether errors in dynamic files are logged.

Topic Closed

This topic has been closed to new replies.

About this Topic