Alexander Makarov
Alexander Makarov
Could be achieved by using result of `dispatch()` method that returns modified event with the message to format.
You're counting pictures, not records from dbl_album_picture so I suppose SQL generated is correct.
True but in this case it's critical to avoid extra dependencies for this package.
TODO: move collector to https://github.com/yiisoft/router-composer-attribute-collector
Either it should be the following: ```php $this->assertSame( $expected, (string)TestTag::tag() ->class('main') ->class(...$class) ); ``` or inline.
Added it back. It is installed by Codeception. That's why it worked for yii-demo. To reproduce install yii-demo with `--no-dev` flag to skip codeception.
One of the obvious solutions — warmup. How else would you solve it? Locking isn't a great solution for something like cache.
The situation you have isn't "Cache stampede" but "[Thundering herd](https://en.wikipedia.org/wiki/Thundering_herd_problem)".
Yeah. Seems to be different names used for the same thing. I found that "thundering herd" if usually used for empty cache situation and stampede is used for when many...
Anyway, common solutions are: 1. Single-threaded cache warmup before making an instance available to end users. That requires some coding and overall complicates the system. 2. Cache request coalescing. It...