src/Model/Cache.php
protected static function invalidateCache($id)
    {
        $type = static::getType();

        $id = (string)$id;

        static::initializeCache($type);

        $collection = self::$cache->{$type};

        unset($collection->{$id});
    }
protected static function invalidateCache($id)
    {
        $type = static::getType();

        $id = (string)$id;

        static::initializeCache($type);

        $collection = self::$cache->{$type};

        unset($collection->{$id});
    }
protected static function invalidateCache ( $ id ) { $ type = static :: getType ( ) ; $ id = ( string ) $ id ; static :: initializeCache ( $ type ) ; $ collection = self :: $ cache -> { $ type } ; unset ( $ collection -> { $ id } ) ; }
Remove resource from cache, used by `PUT`, `PATCH` and `DELETE` methods when changing an object
@param string $id
Remove resource from cache used by PUT PATCH and DELETE methods when changing an object