Are prepared statements cached server-side across multiple page loads with PHP?

后端 未结 7 1030
感动是毒
感动是毒 2020-12-09 17:55

I learnt about prepared statements when making a JDBC-enabled Java application, and my app uses a connection pooling layer that assures me that prepared statements are cache

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 18:14

    Prepared statements have nothing to do with result caching.

    Result caching can be controlled via db server configuration or forced via memcached and the like.

    I suggest you look into memcached, especially for PHP http://www.php.net/manual/en/book.memcached.php

提交回复
热议问题