Cache plugin data

Cache plugin data

Bởi Roman Gelembiuk -
Số lượng các câu trả lời: 0
Hình của Plugin developers

Hello,

I work on custom profile field plugin  according to this manual http://docs.moodle.org/dev/User_profile_fields

In my plugin i will pull data from the extenral resource.  I want to do caching of that data to prevent pulling every time when a profile is viewed.

What is the best way to set caching of data in Moodle? I could save the data in file but where to save it? Is there any built in functionality to manage cache?

Thanks. 

Trung bình điểm đánh giá: -