We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installed version: v4.0.1
The cache key is using the encrypt() function which returns every time a different hash string in all the LaravelStrapi class methods,
encrypt()
$cacheKey = self::CACHE_KEY.'.'.__FUNCTION__.'.'.encrypt($endpoint);
The cache::remember always stores in the cache the same request but with a different $cacheKey
cache::remember
$cacheKey
Proposal to fix the bug:
$cacheKey = md5(self::CACHE_KEY . '.' . __FUNCTION__ . '.' . $endpoint);
$cacheKey = sha1(self::CACHE_KEY . '.' . __FUNCTION__ . '.' . $endpoint);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Installed version: v4.0.1
The cache key is using the
encrypt()
function which returns every time a different hash string in all the LaravelStrapi class methods,$cacheKey = self::CACHE_KEY.'.'.__FUNCTION__.'.'.encrypt($endpoint);
The
cache::remember
always stores in the cache the same request but with a different$cacheKey
Proposal to fix the bug:
$cacheKey = md5(self::CACHE_KEY . '.' . __FUNCTION__ . '.' . $endpoint);
$cacheKey = sha1(self::CACHE_KEY . '.' . __FUNCTION__ . '.' . $endpoint);
The text was updated successfully, but these errors were encountered: