Yuanhui
205
3
General

Is it good to use $GLOBALS as cache?

Posted 7 months ago by Yuanhui

Is it good to use $GLOBALS as cache for sql result. I am working on a project, and the code is not good enough. There are lots of repeated sql during one request. So, I wonder is there a way to use sql statement as key and cache query result.

Please sign in or create an account to participate in this conversation.