有没有办法运行缓存预热来替换使用自定义缓存路径创建的缓存路径中的位置。
例如在运行后
php console cache:warmup *..other args..*我得到了像这样的东西
/home/user/code/xxx/...我想把它替换为
/var/www/code/xxx/....这是我为蚂蚁做的任务
<target name="warmup-cache">
<exec dir="${basedir}"
executable="php"
failonerror="true">
<arg line="app/console cache:warmup -a=name --env=prod "/>
</exec>
</target>我正在使用apache ant在构建期间执行此命令
现在,生成的缓存的所有路由都是/home/user/code/xxx/...
我想将所有缓存数据重命名为/var/www/code/...
发布于 2011-11-04 21:49:01
您可以从ant-conrib任务中使用propertyregex任务。
如果您能提供更准确的示例,我可以为您编写正则表达式:)
https://stackoverflow.com/questions/8009679
复制相似问题