开发者 | skcsknathan001 |
---|---|
更新时间 | 2024年11月19日 19:44 |
捐献地址: | 去捐款 |
PHP版本: | 2.8.6 及以上 |
WordPress版本: | 4.9.20 |
版权: | GPL |
define('SUBDOMAIN_INSTALL', true);
define('VHOST', 'yes');
You must disable your cache plugin to cache the feed as a static page. If you are using W3-Total-Cache plugin, add your Feed URL (relative path): to the Never cache the following pages: section under Page Cache Settings. Ex. "/full-feed/" and make sure to clear empty all caches. The reason is your cache plugin makes the cache of the feed [which has a Content-Type: application/xml]. But after it is cached, when the browser requests, your cache plugin deliver the already cached static file, which now is delivered with Content-Type: text/html]. Some cases, this causes the RSS Widget to not to recognize the feed.
I know its out-of-date. I kept the original codes and cleaned long time ago. I should probably remove WP Object Cache in the next versions. Please suggest a better way on my blog Ada WPMS Sitewide Feed