/** * Adds a Pimcore Object/Asset/Document to the cache * * @param $element */ public static function loadElementToCache($element) { $cacheKey = Element\Service::getElementType($element) . "_" . $element->getId(); Cache::storeToCache($element, $cacheKey, [], null, null, true); }