Skip to content

Commit

Permalink
Merge pull request #1891 from chihiro-adachi/fix-cache-2
Browse files Browse the repository at this point in the history
プラグインの設定ファイルのキャッシュをクリアするように修正
  • Loading branch information
Yangsin authored Oct 27, 2016
2 parents 6b78b0f + 1b662da commit 5575ba8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Eccube/Util/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ public static function clear($app, $isAll, $isTwig = false)
}
}

if (function_exists('opcache_reset')) {
opcache_reset();
}

if (function_exists('apc_clear_cache')) {
apc_clear_cache('user');
apc_clear_cache();
}

if (function_exists('wincache_ucache_clear')) {
wincache_ucache_clear();
}

return true;
}
}

0 comments on commit 5575ba8

Please sign in to comment.