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!
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.