asset_entitycache.module in Asset 7
The Asset Entity cache module.
File
modules/asset_entitycache/asset_entitycache.moduleView source
<?php
/**
* @file
* The Asset Entity cache module.
*/
/**
* Implements hook_entity_info_alter().
*/
function asset_entitycache_entity_info_alter(&$entity_info) {
// Enable Entity Cache support for asset.
$entity_info['asset']['entity cache'] = TRUE;
// Which means that we don't need to cache the fields.
$entity_info['asset']['field cache'] = FALSE;
}
Functions
Name | Description |
---|---|
asset_entitycache_entity_info_alter | Implements hook_entity_info_alter(). |