Page Size Automatically Changes

hi, fellow,

I found a rather strange problem. I am using Yii 1.1, I built a complex search function in my model in order to search the Customer Orders.

I use gridview to display the data, whose pagination size was limit to 25.

But it will changes to 5 records per page. I wonder that if some code was wrong. But when I upload my model file(which remain unchanged) again, it appeard to be normal.

Soon after, it’s page size changes from 25 to 5 again. Here is the debug log.

before:(page size 5)

2014/07/10 22:38:36 [trace] [system.db.CDbCommand] Querying SQL: SELECT * FROM visa_order order WHERE order.status!=:ycp0 ORDER BY order.create_time DESC LIMIT 5. Bound with :ycp0=‘delete’

then I uploaded the model file again(I did not change any code at all, just simple overwrite through FTP):

2014/07/10 23:43:12 [trace] [system.db.CDbCommand] Querying SQL: SELECT * FROM visa_order order WHERE order.status!=:ycp0 ORDER BY order.create_time DESC LIMIT 25. Bound with :ycp0=‘delete’

How did that happened? It’s rather strange!