*
* Generated from xml/schema/CRM/Core/Cache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7ef203eece225df98205318c7162ebd1)
+ * (GenCodeChecksum:5d62ee8a59b8af12078317776d33877c)
*/
/**
'unique' => TRUE,
'sig' => 'civicrm_cache::1::group_name::path',
],
+ 'index_expired_date' => [
+ 'name' => 'index_expired_date',
+ 'field' => [
+ 0 => 'expired_date',
+ ],
+ 'localizable' => FALSE,
+ 'sig' => 'civicrm_cache::0::expired_date',
+ ],
];
return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
}
$this->addTask(ts('Dedupe cache table'), 'dedupeCache');
$this->addTask(ts('Drop index %1', [1 => 'civicrm_cache.UI_group_path_date']), 'dropIndex', 'civicrm_cache', 'UI_group_path_date');
$this->addTask(ts('Create index %1', [1 => 'civicrm_cache.UI_group_name_path']), 'addIndex', 'civicrm_cache', [['group_name', 'path']], 'UI');
+ $this->addTask(ts('Create index %1', [1 => 'civicrm_cache.index_expired_date']), 'addIndex', 'civicrm_cache', [['expired_date']], 'index');
}
/**
<comment>When should the cache item expire</comment>
<add>2.1</add>
</field>
+ <index>
+ <name>index_expired_date</name>
+ <fieldName>expired_date</fieldName>
+ <add>5.61</add>
+ </index>
</table>