的Zlib的COM pression搞砸了路径文件中字preSS多站点 [英] Zlib Compression Screwed Up Path to Files in Wordpress Multisite
问题描述
我跑的多站点网络话语preSS 3.6
与W3超高速缓存插件的性能。我是一个虚拟专用服务器上,但这个词preSS仪表板启动加载这么痛苦的缓慢,这是痛苦的。
I'm running a multisite network on Wordpress 3.6
with the W3 Super Cache plugin for performance. I'm on a virtual dedicated server, but the Wordpress dashboard started loading so painfully slow, it was excruciating.
所以,我做了一个快速搜索,发现这个的在WPMU 方便的尖。笔者建议,使用 zlib的COM pression
将加快我的加载时间X3。所以,我把意见和我的主题的头部粘贴这段代码:
So I did a quick search and found this "handy" tip on WPMU. The author suggested that using zlib compression
would speed up my load times x3. So I took the advice and pasted this snippet in the header of my theme:
<?php
ini_set(’zlib.output_compression’, ‘On’);
ini_set(’zlib.output_compression_level’, ‘1′);
?>
而不是瞬间看到了巨大的性能提升,它搞砸了一些与 blogs.dir
现在所有的上传和媒体都在断开的链接。我删除了上面的PHP代码片段,但链接还是死了。我看着的.htaccess
和 WP-配置
,并没有看到任何的zlib输入。
Instead of "instantly seeing a huge performance improvement," it screwed up something with the blogs.dir
and now all uploads and media are broken links. I removed the above PHP snippet, but the links are still dead. I looked in .htaccess
and wp-config
and didn't see anything input from zlib.
谁能帮我找到解决这个问题呢?
Can anyone help me find a solution to this problem?
推荐答案
尝试清除W3的超高速缓存文件,你可能会寻找一个过时的缓存副本。我不熟悉的插件,我用W3TC,但应该有某种形式的清除缓存选项。否则,停用它,看看会发生什么。
Try clearing the W3 Super Cache files, you may be looking at an outdated cached copy. I am not familiar with that plugin, I use W3TC, but there should be some sort of "clear cache" option. Otherwise, deactivate it, and see what happens.
您也可以尝试将永久链接设置,并保存他们 - 这将改写你的.htaccess文件为你 - 除非你的缓存插件的干扰
You could also try going to permalink settings, and saving them - that will rewrite your .htaccess file for you - unless your caching plugin is interfering.
这篇关于的Zlib的COM pression搞砸了路径文件中字preSS多站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!