我在我的项目中使用 Doctrine 2.4.6(不是 Symfony)。而且我需要清除缓存元数据,但是当我执行该命令时:
cd /home/folder/public_html/includes/doctrine
php vendor/doctrine/orm/bin/doctrine orm:clear-cache:metadata
我收到了这个错误:
PHP Warning: php_uname() has been disabled for security reasons in /home/folder/public_html/includes/doctrine/vendor/symfony/console/Symfony/Component/Console/Output/ConsoleOutput.php on line 111
[LogicException]
Cannot clear APC Cache from Console, its shared in the Webserver memory and not accessible from the CLI.
orm:clear-cache:metadata [--flush]
这里有什么问题?我可以通过 PHP 代码编写一些代码太清除缓存吗?