简体   繁体   English

“添加帖子”有时会覆盖以前的帖子 Wordpress

[英]"Add post" sometimes overwriting a previous post Wordpress

I have this issue with my wordpress site, sometimes posting a new post will overwrite a previous post.我的 wordpress 网站有这个问题,有时发布新帖子会覆盖以前的帖子。 Specially one of my writers is suffering from this problem very much.特别是我的一位作家深受这个问题的困扰。 I am using litespeed cache.我正在使用 litespeed 缓存。 I've also enabled Redis object caching on my website recently but I had the problem before enabling it too.我最近还在我的网站上启用了 Redis 对象缓存,但在启用它之前我也遇到了问题。

I resolved this by adding a htaccess file with below content in wp-admin folder.我通过在 wp-admin 文件夹中添加一个包含以下内容的 htaccess 文件解决了这个问题。

<IfModule mod_expires.c>
 ExpiresActive On
 ExpiresByType text/html "access plus 0 seconds"
</IfModule>

RewriteRule ^(.*)$ $1 [NS,E=no-gzip:1,E=dont-vary:1]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM