Hello everyone,
great result sets caching possibilities described in official docs
but how to use a cache for count method of a model? I tried the following but no luck
public function getPosition() {
return self::count(["id<={$this->getId()}", 'cache' => ['lifetime' => 3600, 'key' => 'zz']]);
}
I know i can inmplement some kind of 'cache' manually, but how to do it using the framework, just like we do it for find(), findAll() and model relations?