src/includes/classes/Core/Utils/OEmbed.php
protected function setEmbedlyCache(string $url, \StdClass $embed)
    {
        $url_sha1              = sha1($url);
        $cache_dir             = $this->cache_dir.'/embedly/'.$this->c::sha1ModShardId($url_sha1, true);
        $cache_dir_permissions = $this->App->Config->©fs_permissions['©transient_dirs'];
        $cache_file            = $cache_dir.'/'.$url_sha1;

        if (!is_dir($cache_dir)) {
            mkdir($cache_dir, $cache_dir_permissions, true);
        }
        file_put_contents($cache_file, serialize($embed));
    }
protected function setEmbedlyCache(string $url, \StdClass $embed)
    {
        $url_sha1              = sha1($url);
        $cache_dir             = $this->cache_dir.'/embedly/'.$this->c::sha1ModShardId($url_sha1, true);
        $cache_dir_permissions = $this->App->Config->©fs_permissions['©transient_dirs'];
        $cache_file            = $cache_dir.'/'.$url_sha1;

        if (!is_dir($cache_dir)) {
            mkdir($cache_dir, $cache_dir_permissions, true);
        }
        file_put_contents($cache_file, serialize($embed));
    }
Set Embedly cache.

@since 151125 OEmbed utilities.

@param string    $url   URL the embed is for.
@param \StdClass $embed The embed response object.