Time-Stack-Plugin icon indicating copy to clipboard operation
Time-Stack-Plugin copied to clipboard

Use transients as storage as a fallback.

Open leewillis77 opened this issue 9 years ago • 0 comments

Hi Joe;

I've been using Time-Stack to do some profiling of a page that isn't HTML - so solutions like debug-bar don't work for me. Time-Stack has worked really well - so thanks :)

However - I wanted to profile the code as run WITH and WITHOUT an object cache as many of the users running the code in question won't be using an object cache.

The attached PR makes the plugin fallback on transients for storage if neither APC, or an external object cache are available meaning it can be used without APC/Memcache.

This WorksForMe[tm], but I'm not sure if there was a deliberate reason not to use transients and insist on external cache - maybe some issue I haven't hit yet?

Comments / feedback welcome - thanks!

leewillis77 avatar Aug 26 '16 13:08 leewillis77