Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19300

brent113 on "[Plugin: W3 Total Cache] Bug - IIS8 w/ Website Base a UNC Path - Workaround"

$
0
0

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/


Viewing all articles
Browse latest Browse all 19300

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>