
behnamy - 2018-06-05 08:54:24 -
In reply to message 2 from Marco Cesarato
Thanks again, useful advise.
One more question, I checked your class codes and saw that every cached data is saving in $__cache variable!
So as it is a variable, not being saved in DB or file, the cache terminates and removes at the end of the script every time that script runs and finishes its work! So there wouldn't be any cache for the next time that script runs again.
Isn't better to save the $__cache data in a temporary DB table with memory engine, or in a File?
in this way the cache would last longer!