Drupal 6 - 刷新所有缓存而不清空数据库中的所有缓存表
我尝试在性能设置中单击“清除缓存数据”,并运行“drush cc all”,但某些缓存表中始终保留一些行:
- cache_form 始终保留 37 行(这是很多数据)
- cache_location 始终剩余 1 行
- cache_update 始终剩余 3 行
我想在进行数据库转储并将其从开发盒传输到生产服务器之前完全清空所有缓存表。
I've tried clicking "Clear cached data" in Performance settings, and also running "drush cc all", but some cache tables always have some rows left in them:
- cache_form always has 37 rows left (and that is a lot of data)
- cache_location always has 1 row left
- cache_update always has 3 rows left
I want to completely empty all my cache tables before I take a db dump and transfer it from my development box to my production server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对这些缓存表不太熟悉。但最明显的原因是缓存是在缓存被清除后创建的。
要解决您的问题,您可以使用 drush 或其他连接到数据库的工具手动删除表中的内容。您还可以省略这些表的内容,就像默认情况下备份迁移对所有缓存表、看门狗等所做的那样。
I'm not in depth familiar with those cache tables. But the most obvious reason would be that the cache is created after the cache is cleared.
To solve your problem you could manually delete the content in the tables with drush or some other tool to connect to your database. You could also leave out the contents of those tables, like the backup migrate does by default with all cache tables, watchdog etc.