是否可以刷新 Drupal 7 中的所有图像模块目录?
有没有办法一次刷新所有图像目录?也许使用 Drush?
Is there a way to flush all of the image directories at once? Perhaps using Drush?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
另外,在安装了 drush 的情况下,从命令行:
它会为您提供所有类别的下拉列表。选择“全部”!
Also, from the command line, with drush installed:
which gives you a drop-down of all catagories. Choose 'all'!
我已经在我的系统上完成了此操作,但请确保在您自己测试时对其进行备份。
只需删除文件目录中的 styles 目录即可。它们将在加载时重新创建。
即从命令行,从您的 Web 根目录,您将运行:
您可能会遇到权限问题,因为这些文件将由 Web 用户拥有。在这种情况下,也许您可以有一个表格 &模块中的提交处理程序删除这些文件,因为它将由 Web 用户运行。不过那是另一个话题了。
I've done this on my system, but make sure you back it up when you test it out yourself.
Simply delete the styles directory in your files directory. They will re-create as they are loaded.
i.e. from the command line, from your web root, you would run:
You may run into permission issues as those files will be owned by the web user. In that case, maybe you could have a form & submit handler in a module delete those files since that would be run by the web user. That is another topic though.