I'm using Doctrine 2.4.6 in my project (not with Symfony). And I need to clear cache metadata, but when I execute that commands:
cd /home/folder/public_html/includes/doctrine
php vendor/doctrine/orm/bin/doctrine orm:clear-cache:metadata
I got this error:
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]
What wrong here? Can I write some code too clear cache via PHP code?