X
X
XenK2016-07-20 06:05:06
PHP
XenK, 2016-07-20 06:05:06

What is the best way to cache data?

I load data via AJAX into JSON, which is returned by PHP. There are about 30-40 objects in JSON, they need to be cached. The question arose, where is it better, in the .js script itself, or next to the php script, to generate .txt and then compare?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-07-20
@XenK

localstorage on the client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question