1

I use a class in PHP, that stores some Prepared Statements. I usually use one Statement per Request. Is there a efficient way to cache this class, the connection and the statements? I already looked at APCu, but it doesn’t seem right to me. Thanks in advance!

Profilüfter
  • 81
  • 2
  • 12

1 Answers1

1

No, there is no way to cache it between requests, because prepared statement is bound to a resource and you cannot persist resources between requests.

Your Common Sense
  • 156,878
  • 40
  • 214
  • 345