【发布时间】:2013-07-30 12:04:41
【问题描述】:
在对我的站点根目录进行一次查询后,我会在日志中看到这些字符串:
Started GET "/" for 192.168.1.3 at 2013-07-30 17:55:36 +0600
Processing by WelcomeController#index as HTML
Image Load (0.5ms) SELECT `images`.* FROM `images` ORDER BY `images`.`id` DESC LIMIT 4
...
Started GET "/" for 192.168.1.3 at 2013-07-30 17:55:38 +0600
Processing by WelcomeController#index as */*
Image Load (0.4ms) SELECT `images`.* FROM `images` ORDER BY `images`.`id` DESC LIMIT 4
...
Started GET "/" for 192.168.1.3 at 2013-07-30 17:55:41 +0600
Processing by WelcomeController#index as HTML
Image Load (0.5ms) SELECT `images`.* FROM `images` ORDER BY `images`.`id` DESC LIMIT 4
...
这对于 Rails 来说是正常的吗?为什么 Rails 对一个查询进行三重处理?请帮帮我。
【问题讨论】: