Skip to content

Instantly share code, notes, and snippets.

@asp24
asp24 / flush_cache.php
Last active October 18, 2019 20:34
Script for flushing bytecode cache
<?php
/**
* Script for flushing bytecode cache
*
* usage:
* php flush_cache.php unix:///var/run/php5-fpm.sock
* php flush_cache.php 127.0.0.1 9000
*
* Change SECRET bellow before use!
@asp24
asp24 / gist:7195433
Last active December 26, 2015 18:38
PHP Public Method name as Callable property idea.
<?php
class PropertyExtenderRepo {
protected static $instance;
public static function getInstance()
{
if (self::$instance === null) {
self::$instance = new self();