From 65232792b9c7ba32c66d1e85be5532bc4acee614 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 5 Jul 2016 23:05:39 +0300 Subject: [PATCH] #10503: Added note about flusing APC and OpCache from CLI --- framework/console/controllers/CacheController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/console/controllers/CacheController.php b/framework/console/controllers/CacheController.php index a2f6fe4df2..a7faa6155f 100644 --- a/framework/console/controllers/CacheController.php +++ b/framework/console/controllers/CacheController.php @@ -32,6 +32,12 @@ use yii\console\Exception; * configured are different from web application, web application cache won't be cleared. In order to fix it please * duplicate web application cache components in console config. You can use any component names. * + * Both APC and OpCache aren't shared between PHP processes so flushing cache from command line has no effect on web. + * Flushing web cache could be either done by: + * + * - Putting a php file under web root and calling it via HTTP + * - Using [Cachetool](http://gordalina.github.io/cachetool/) + * * @author Alexander Makarov * @author Mark Jebri * @since 2.0