Merge branch 'master' of github.com:h5p/h5p-php-library

namespaces
Pål Jørgensen 2014-11-02 16:37:12 +01:00
commit 21af665370
1 changed files with 2 additions and 2 deletions

View File

@ -2163,7 +2163,7 @@ class H5PCore {
*/
public function getLibrariesMetadata() {
// Fetch from cache:
$metadata = $this->h5pF->cacheGet('libraries','metadata');
//$metadata = $this->h5pF->cacheGet('libraries','metadata');
// If not available in cache, or older than a week => refetch!
if ($metadata === NULL || $metadata->lastTimeFetched < (time() - self::SECONDS_IN_WEEK)) {
@ -2174,7 +2174,7 @@ class H5PCore {
$metadata->json = ($json === FALSE ? NULL : json_decode($json));
$metadata->lastTimeFetched = time();
$this->h5pF->cacheSet('libraries','metadata', $metadata);
//$this->h5pF->cacheSet('libraries','metadata', $metadata);
}
return $metadata->json;