Made statistics being sent on updateContentTypeCache [HFP-931]
parent
2ff14ecd37
commit
727e88908a
|
@ -2836,21 +2836,11 @@ class H5PCore {
|
||||||
public function updateContentTypeCache($postData = NULL) {
|
public function updateContentTypeCache($postData = NULL) {
|
||||||
$interface = $this->h5pF;
|
$interface = $this->h5pF;
|
||||||
|
|
||||||
// Set uuid
|
// Make sure data is sent!
|
||||||
if (!$postData || !isset($postData['uuid'])) {
|
if (!isset($postData) || !isset($postData['uuid'])) {
|
||||||
$site_uuid = $this->h5pF->getOption('site_uuid', '');
|
|
||||||
|
|
||||||
// Register site with site uuid if we don't already have it
|
|
||||||
// and try to update content type cache again when this is done
|
|
||||||
if (empty($site_uuid)) {
|
|
||||||
return $this->fetchLibrariesMetadata();
|
return $this->fetchLibrariesMetadata();
|
||||||
}
|
}
|
||||||
|
|
||||||
$postData = array(
|
|
||||||
'uuid' => $site_uuid
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$postData['current_cache'] = $this->h5pF->getOption('content_type_cache_updated_at', 0);
|
$postData['current_cache'] = $this->h5pF->getOption('content_type_cache_updated_at', 0);
|
||||||
|
|
||||||
$protocol = (extension_loaded('openssl') ? 'https' : 'http');
|
$protocol = (extension_loaded('openssl') ? 'https' : 'http');
|
||||||
|
|
Loading…
Reference in New Issue