A
A
Alexey102020-05-31 23:02:14
WordPress
Alexey10, 2020-05-31 23:02:14

How to clear the WP cache?

I create two fields for the address. One for the English version of the site, the other for the Russian. Polylang plugin (for multilingualism) and Theme Options for additional header and footer fields.

<?php if ( get_locale() == 'en_GB' ) { ?>
<?php if(ot_get_option('adress_text_eng')) { ?>
Central office:
<?php echo ot_get_option('adress_text_eng'); ?>

<?php } ?>
<?php } else { ?>
<?php if(ot_get_option('adress_text')) { ?>
Central office:
<?php echo ot_get_option('adress_text'); ?>

<?php } ?>
<?php } ?>

And here and there it gives out the text from the Russian field. But after that, I change the text in the Russian field, but it only changes on the Russian page, in English it gives out the Russian text that was before. Somehow the text is cached along the way, I don’t understand. How to clean it? Used the WordPress Super Cache plugin but nothing helped. What could be the problem? maybe the database needs to be cleaned somehow?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question