1
0
Fork 0
mirror of synced 2024-06-15 17:24:48 +12:00

Merge pull request #1094 from appwrite/fix-avatars-shared-cache

Fixed cached bug
This commit is contained in:
Eldad A. Fux 2021-04-17 00:15:43 +03:00 committed by GitHub
commit 65f9c97e8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ $avatarCallback = function ($type, $code, $width, $height, $quality, $response)
$output = 'png';
$date = \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT'; // 45 days cache
$key = \md5('/v1/avatars/:type/:code-' . $code . $width . $height . $quality . $output);
$key = \md5('/v1/avatars/'.$type.'/:code-' . $code . $width . $height . $quality . $output);
$path = $set[$code];
$type = 'png';