Skip to content

Instantly share code, notes, and snippets.

@vielhuber
Last active September 18, 2019 00:12
Show Gist options
  • Save vielhuber/91fb5289160e410607c9ea89112a575b to your computer and use it in GitHub Desktop.
Save vielhuber/91fb5289160e410607c9ea89112a575b to your computer and use it in GitHub Desktop.
opcache rebuild #php #server
<?php
opcache_reset();
header('Location: /');
curl http://tld.local/flush.php
{
"emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.php$",
"cmd": "curl http://tld.com/flush.php"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment