You are here

function password_policy_update_7110 in Password Policy 7

Clear schema cache to prevent Features errors.

When a site is using the Features module and is upgraded from a version of Password Policy before 7.x-1.10, it is possible that Features will attempt to define some functions twice, resulting in PHP errors. Clearing the schema cache prevents that from occurring.

File

./password_policy.install, line 558
Password Policy module installation and upgrade code.

Code

function password_policy_update_7110() {
  cache_clear_all('schema', 'cache', TRUE);
}