Skip to content

Instantly share code, notes, and snippets.

@armandduijn
Created February 8, 2020 12:32
Show Gist options
  • Save armandduijn/0d0cf4756cce9b5a617ef4af72f8cfb4 to your computer and use it in GitHub Desktop.
Save armandduijn/0d0cf4756cce9b5a617ef4af72f8cfb4 to your computer and use it in GitHub Desktop.
Clear Doctrine cache when using APC
<?php
# Running `orm:clear-cache:metadata` may fail with an error about
# shared webserver memory. Upload this PHP script to a public
# folder on your webserver and access it via the web.
apc_clear_cache();
apc_clear_cache('user');
print("Done");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment