3 ms·
Ah there were a couple of bugs. It now doesn't require a caching module to be installed, but is slower with out it. XCache is preferred as it allows closure cac
by antihero 15y ago
Ah there were a couple of bugs. It now doesn't require a caching module to be installed, but is slower with out it. XCache is preferred as it allows closure caching.
On my laptop:
Xcache: ~700 microseconds
APC: ~1,300 microseconds
Dummy (no caching): ~3,712 microseconds
- Gigablah 15y agoYeah, I tried to drop in a Redis caching class and immediately ran into that problem. I noticed someone had published a method for serializing PHP closures using magic methods and reflection, but that's way too complex a workaround.