• WordPress 5.6 added clean_dirsize_cache function and it is just working except windows IIS, for IIS wordpress, in the case of an infinite loop, the function will lead file upload hang when set MULTISITE = true.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi there,
    I am also facing this issue from past 3 days. Whenever I try to do this on windows IIS, it stops working. It was kind of really a great headache for me that sucks. In the past with version 5.5.3, I was kind of frustrated with the bugs that I got in it. I am really confused now that how can I do it on my own. I am shocked that this question is still unanswered. Or do I need to make another thread for this?

    Hello all,

    I added an additional line of code at the start of the function to help work around the issue until resolved.

    return;

    This is added to line 7726 to prevent the function from returning anything. This may be dangerous or break something but at least users can upload for now.

    Thread Starter Imagecxdone

    (@cxdone)

    added add_filter(“transient_dirsize_cache”,function(){return ”}) in plugin and user can upload for now.

    Problem is still not fixed in version 5.6.1.

    Thank you @drosmog! This bug has been killing me. I made the change you suggested and everything’s working at least temporarily while a proper solution is worked on.

    Hi everyone,
    This thread saved my website. Here’s the code I built into a plugin thanks to @cxdone for the mention, It seemed to work.

    I can’t guarantee this will work for anyone else but am hoping the code will provide reference for others later.

    Note this is only a bypass of the issue. If the plugin is deactivated the problem returns.

    <?php
    /**
     * Plugin Name: Multisite Cache Bug 
     * Description: A potential fix for the problem mentioned at https://wordpress.org/support/topic/iis-wordpress-5-6-multi-sites-file-upload-hang/#post-13867460
     * Version: 0.1
     * License: GPL2
     */
    
    // Prevent direct access to this file
    defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
    
    add_filter( "transient_dirsize_cache", function() {return; } );
    

    Thank you @josephdickson for providing this snippet. Presumably the transient expired for us recently and caused a lot of editors to suddenly be unable to interact with the media folders on the site. Incredibly frustrating!

    Nice to see there’s a few people who use multisite on Windows/IIS still.

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

The topic ‘IIS WordPress 5.6 Multi Sites file upload hang’ is closed to new replies.