WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Bug - IIS8 w/ Website Base a UNC Path - Workaround (1 post)

  1. brent113
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/plugins/w3-total-cache/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.