Skip to content

Instantly share code, notes, and snippets.

View dougreese's full-sized avatar

Doug Reese dougreese

View GitHub Profile
@dougreese
dougreese / apc_overloads.php
Last active October 12, 2015 08:12 — forked from aholmes/apc_overloads.php
APC replacement functions for code using apc_* user based caching functions for servers running PHP 5.5 (where APC is no longer supported) or where APC is otherwise not installed. Stores data in file based cache files.
<?php
/*
APC replacement functions
Replaces APC user cache functionality with file based caching.
Notes:
- cache files stored in result of sys_get_temp_dir()
- ttl not supported, cache files must be cleaned up manually