T
T
tincap2016-02-29 20:35:20
Yii
tincap, 2016-02-29 20:35:20

How to cache files in Yii2?

Hello.
I work with Curl and I have a huge amount of cookies. When accessing an account, it must read a cookie file from the hard drive each time. How can I cache this file in Yii2?
As I understand it, you need to work with the yii\caching\FileCache component.
But I did not understand how to cache files using it.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question