I have few scripts that must share highly dynamic data that is accessible on every HTTP request, just like $_SESSION for user's session. What is the best way to achieve that?
You may try APC or Memcache.
If you are not able to use any of those, a MySQL table with memory engine might be also the answer.
Take a look into in-memory storages, like memcached (PHP extension), Redis or MySQL's MEMORY tables. Also, there are a lot of other storage engines that uses RAM to store data.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With