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
Thanks for this wonderful and simple caching library. It's exactly what I need!
Just FYI, this notice occurs on line 105 of cache.class.php in my version of PHP, 5.6.14.
The fix is to only serialize when $type == 'data'. My quick fix was this:
/** * Retrieve cached data by its key * * @param string $key * @param boolean [optional] $timestamp * @return string */ public function retrieve($key, $timestamp = false) { $cachedData = $this->_loadCache(); (false === $timestamp) ? $type = 'data' : $type = 'time'; if (!isset($cachedData[$key][$type])) return null; if ($type == 'time') { return $cachedData[$key][$type]; } return unserialize($cachedData[$key][$type]); }
The text was updated successfully, but these errors were encountered:
saved me some time, still using this script ^^
Sorry, something went wrong.
No branches or pull requests
Thanks for this wonderful and simple caching library. It's exactly what I need!
Just FYI, this notice occurs on line 105 of cache.class.php in my version
of PHP, 5.6.14.
The fix is to only serialize when $type == 'data'. My quick fix was this:
The text was updated successfully, but these errors were encountered: