开发者

rails 2.3.4 / problem with query string parameters in production environment

开发者 https://www.devze.com 2023-02-01 23:48 出处:网络
i work on an old Rails 2.3.4 App. When i invoke an开发者_C百科 action of an \"baz\" controller with an GET param like

i work on an old Rails 2.3.4 App. When i invoke an开发者_C百科 action of an "baz" controller with an GET param like www.foo.com/baz/search?search_string=Hello i get the expected result but i looks like rails is caching the result.

Invoking the action with an new param like www.foo.com/baz/search?search_string=World returns the old result.

I did some debugging an realized that this behaviour only occurs in "production env" when "config.cache_classes" is "true"

Any ideas? THX!


config.cache_classes = true in production.rb wouldn't cache any results. It basically means that it wouldn't reload Rails classes in the Production Environment and have them cached,( this is why the production environment is faster than development )

are you doing some page caching or any other kind of caching in that controller, It would be great if you could post your controller code here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号