• I’m working on getting W3TC 0.9.2.11 to work on my setup – Windows file host with a network file share backend at \\[path]\[share]\[site name]

    w3_path and some other functions are causing me havoc and I’m working on fixing them for my setup.

    In define.php:

    function w3_path($path) {
    	liveoutput("path", $path);
        $path = preg_replace('~[/\\\]+~', '/', $path);
    	liveoutput("path-after-preg", $path);
        $path = rtrim($path, '/');
    
        return $path;
    }

    The line in there with
    preg_replace('~[/\\\]+~', '/', $path);
    for me has to be
    preg_replace('~[/\\\]~', '/', $path);
    —without the + modifier because then is replaces
    \\[path]\[share]\[site name]
    with
    /[path]/[share]/[site name]
    which doesn’t exist!

    Hopefully something will make it into future revisions so my changes don’t get lost at every update!

    Thanks,
    Brent

    https://www.ads-software.com/extend/plugins/w3-total-cache/

  • The topic ‘Bug – IIS8 w/ Website Base a UNC Path – Workaround’ is closed to new replies.