A
A
Anton_a462020-01-16 19:32:35
PHP
Anton_a46, 2020-01-16 19:32:35

Rationality of caching to file?

There are 3-4 fields in the database (I use SQLite) with text. They change every 30 minutes, information is displayed on the site page (3-4 thousand times per hour). Is it rational to cache this information in a file and recreate it every 30 minutes? If not, why and in what cases is cache-to-file rational?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kim, 2020-01-16
@Anton_a46

If there are 4 records in the database, then there is nothing even to look for.
Since you want to get confused with the file, just write to it right away.

A
antonwx, 2020-01-16
@antonwx

3-4 thousand times per hour

It's nothing. If there were 3-4 thousand requests per minute, then it would be another matter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question