我应该将我的项目从 Cake 1.2.5 升级到 CakePHP 1.3.0 吗?
我的网络项目(几个月后启动)目前使用的是 CakePHP 1.2.5 / PHP 5.1.6 / MySQL 5.0.77。
从性能角度来看,升级到1.3是个好主意吗?
以后升级到(仅限 PHP5)CakePHP 2 会更容易吗?
My web project (to be launched in a few months) is currently using CakePHP 1.2.5 / PHP 5.1.6 / MySQL 5.0.77.
From a performance point of view, is it a good idea to upgrade to 1.3?
Will it make it easier to later upgrade to the (PHP5-only) CakePHP 2?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我想说这取决于您希望何时推出您的网站。 1.3 目前处于 alpha 状态,一段时间内可能不会正式稳定。虽然 1.2 和 1.3 之间所做的更改不会对整体稳定性产生巨大影响,但引入的新功能可能仍然存在错误。问题是,1.3 中有您现在绝对需要的东西吗?
如果您想尽快在不稳定的 1.3 版本上发布您的网站,您需要通过大量测试确保您正在使用的部件能够按预期运行。如果您的项目将随着时间的推移与 1.3 一起发展,比如说在接下来的 6 个月左右的时间里,并且您不断更新,您可能会处于更好的状态。例如,我在 1.2 beta 上开发了一个项目,
Set
中存在一些错误,这让我很困惑,但直到最终版本才得到解决。对于长期项目,我更喜欢 1.3 分支,而对于近期的版本,我现在会坚持使用 1.2.5。您可以密切关注迁移指南以避免 API 调用在 1.3 中已弃用,以便以后更容易升级。
I'd say it depends on when you expect to get your site out the door. 1.3 is currently in alpha status and probably won't be officially stable for a while. While the changes being made between 1.2 and 1.3 shouldn't have a huge impact on the overall stability, the new features being put in might still be buggy. The question is, is there anything in 1.3 that you absolutely need now?
If you want to release your site soon on an unstable version of 1.3, you need to make sure through a lot of testing that the parts you're using are performing as expected. If your project will evolve over time together with 1.3, let's say over the next 6 months or so, and you continuously keep updating, you'll probably be in better shape. For example, I developed a project on the 1.2 beta and there were a few bugs in
Set
, which tripped me up, but got ironed out 'till the final release.For a long-term project, I'd prefer the 1.3 branch, while for a near-future release I'd stick with 1.2.5 for now. You can keep an eye on the Migration Guide to avoid API calls that will be deprecated in 1.3, to allow for an easier later upgrade.
我认为如果您有时间的话,升级总是一个更好的选择。我不喜欢 CataPHP,但是,如果我在发布之前有足够的时间,我会进行任何升级。
I think an upgrade is always a better opition IF you have time to do it. Im not into CataPHP but, i would do any upgraded if i have enough time before the release.
情况允许的话我会提前升级。如果还没有,您可能想开始使用 cakephp/simpletest 测试来确保一切正常。
我花了很多时间从 1.1 升级到 1.2,并且在浏览我的代码时获得了很多“乐趣”。 :)
i'd upgrade early situation allows. if you haven't you might want to start using the cakephp/simpletest test to make sure things work just fine.
i took my time upgrading from 1.1 to 1.2 and had a lot of 'fun' going through my codes. :)