Answer the question
In order to leave comments, you need to log in
How to exclude a piece of php code from caching?
Good afternoon!
The page has a piece of php code that is responsible for rotating blocks when the page is reloaded:
<?php
switch(rand(1,2)){
case 1:
?>
Блок 1
<?php
break;
case 2:
?>
Блок 2
<?php
break;
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question