T
T
Toshi Young2015-12-17 13:15:36
PHP
Toshi Young, 2015-12-17 13:15:36

Is it possible to store user data in the Cache?

I asked a stupid question.
There is a PHP Yii2 site, when accessed, a request is made to determine the user's geo-data by IP + getting some data from the MySQL database.
Is it possible to store this data in cache? Or is it better to move it all into sessions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-12-17
@Toshi

How to distinguish cache from storage: if you remove the cache, the application will work, just slower.
Sessions in this plan - storages. You also need a cache (apparently).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question