CRM-13066, move alter to php from template

----------------------------------------
* CRM-13066: 'Clean up Caches' deletes in progress batches
  http://issues.civicrm.org/jira/browse/CRM-13066
Merge pull request #1548 from kurund/CRM-13066

CRM-13066, move alter to php from template