Skip to content

Instantly share code, notes, and snippets.

View milesich's full-sized avatar

Martin Milesich milesich

  • 20:00 (UTC +01:00)
View GitHub Profile
@milesich
milesich / clear-apc.php
Last active April 13, 2018 09:33 — forked from stuartcarnie/clear-apc.php
Self-contained php script to clear shared-memory cache in php5-fpm via command-line. In this instance it is clearing APC, but can be easily changed to clear other shared-memory caches.
#!/usr/bin/env php
<?php
/*
Copyright 2013 Stuart Carnie and other contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to