polylang_mo and 404s, Take 2
-
Hi Chouby,
a couple of days ago I opened a thread with the same subject. Unfortunately I marked it “resolved” prematurely and added a post afterwards. Apparently you aren’t watching “resolved” threads, so please kindly excuse that I post it here again.
Quoting my post from 16 June:
OK, I found out where the 404s come from:
It’s the cache preloading of WP Super Cache. It goes through the database and tries to pre-build every post with the post_status “publish”. Unfortunately the polylang_mo posts also have the status “publish”.
I changed the post_status to “private” (line 45, mo.php) and saved the string translations, the 404s are gone and everything seems to work fine, so far.
However I don’t know, if the “private” status has any negative effects I’m not aware of …
What do you think?
So far I only made this little change on my offline test site. It seems to be without negative side effects for the last 3 days. However, before I apply the hack to my online site, I would appreciate to hear from you wether it’s really harmless or I should better leave it as it is.
Thanks in advance, and sorry again for the double post.
Tom
- The topic ‘polylang_mo and 404s, Take 2’ is closed to new replies.