P
P
Pyotr Volkhanov2019-11-29 14:03:14
PHP
Pyotr Volkhanov, 2019-11-29 14:03:14

Page view counter and caching. How to solve the problem?

Page view counter and caching. How to solve the problem? Namely, the counter is written in PHP, and when the page is issued from the cache, without a call to PHP, the counter does not increase. Who faced the same problem? What are the solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Matveev, 2020-01-12
@ematveev

Is there a contradiction between saving traffic and the counter? if you don't need to save traffic, then generate a new URL each time - and there will be no caching, for example:
/index.php?random=123456

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question