sleptor
sleptor
@lav45 getTotalCount() is being called multiple times during GridView rendering. It's normal. To avoid duplicated COUNT queries, its result is cached in $this->_totalCount. However, due to the bug, $this->_totalCount is...
@lav45, it's regression. In 2.0.49, the caching logic is correct. $this->_totalCount is initialized when it's null ``` public function getTotalCount() { if ($this->getPagination() === false) { return $this->getCount(); } elseif...
@lav45 You added this test, and I think it's wrong because it's artificial. What would a real-life situation be when you need to change the provider's query after a pagination...
@marcovtwout I'm afraid the only immediate solution is to downgrade to 2.0.49.4.
It's broken in 2.0.50. You should downgrade to 2.0.49.4 In dev-master, it works, but there is performance degradation. Proper solution is under discussion here https://github.com/yiisoft/yii2/issues/20213