How are you loading the information? Do you load the rank information from a database every time it is requested? If so, what kind of database (MySQL- some other relational database/some noSQL variant/some kind of flat-file database?
Explain what you mean by "real-time" and how it works for your system. For example, are you using AJAX with long-polling or web-sockets to keep information on a web-page up-to-date? Are you sending the data when it is changed, or on a time-interval regardless of the state of the data. How much data are you sending (estimate in bytes)?
@
CodeDragon offered a data storage solution which involves file I/O to a problem that may already be faster than that. Without information, I can't say- though file I/O is relatively slow.. relative to other data storage techniques.
@
oleaa said to use XCache, but from my understanding, XCache is not a data caching solution. XCache claims to make PHP execute faster by saving the compiled state of PHP files in memory. If you are loading the data from a database, than the database I/O is likely the bottleneck. XCache is probably good to use anyway, but I don't think XCache will solve your problem.
It's easy to throw data in memory and send it to a web-page, the hard part is knowing when to take the data out of memory, and teaching the computer when it should/shouldn't store the data in the first place. (as noted in the quote-
cache invalidation). Also, network I/O over the internet is one of the slowest forms of I/O there is. Decreasing requests/responses may attack the problem head on. You may not even need to cache that data on the server.
You seem to think that 12-24 hours is the right time to invalidate cache. Though I'm not entirely convinced. If you are not worried about anything except "Where" to store the cache, then the answer is very simple: The best place to store cache is memory. (Granted, the goal is that an appropriate amount of data is quickly stored and quickly retrieved).
If you need help with optimizing your system's procedures, which I believe is the real problem, please answer my questions.