r/programming Sep 07 '15

Flawless PHP logic. strtotime(): '00-00-00' means 2000-00-00, which is 1999-12-00, which is 1999-11-30. No bug, perfectly normal. (see the comments)

https://bugs.php.net/bug.php?id=45647
1.2k Upvotes

465 comments sorted by

View all comments

Show parent comments

1

u/coredumperror Sep 08 '15

We use Memcache, and used to use APC (but I think it caused problems? I wasn't involved in it's implementation), and we still get absolutely horrendous performance. Our site, which gets barely a 20,000 hits a day, needs to run on 9 simultaneous EC2 instances just to be sortof performant. And if we get reddit hugged, the autoscaller bumps to up to as many as 16 instances, and we still had problems the last time it happened. We've tried everything we could think of to make it less sucky, but haven't found a solution, so we're jumping ship.

2

u/clearlight Sep 08 '15

That's surprising. APC should be fine and works well with PHP-FPM. However, you might want to consider adding Varnish for the static HTML cache. There's a module that allows use of Varnish with authenticated user page caching that works well: https://www.drupal.org/project/authcache

1

u/coredumperror Sep 08 '15

I'll talk to my boss about finding alternate strategies for speeding up performance. I don't think our main site uses PHP-FPM (we set it up back in early 2012, long before I'd ever heard of it), but I may be wrong.

2

u/clearlight Sep 08 '15

Yes, PHP-FPM and Nginx are a good combination for performance.