A
A
Artur Galyaev2020-09-25 20:13:05
PHP
Artur Galyaev, 2020-09-25 20:13:05

Partial caching in WordPress?

I take records in random order with orderby' => 'rand'

$args = array(
                'orderby' => 'rand',
              );
              $query = new WP_Query( $args ); ?>

Caching plugins cache the entire page and end up randomly not working.
Is it possible to cache a page while still keeping it dynamic? Or is it impossible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
YakovSpb, 2020-09-25
@YakovSpb

you can output the code to the script and not cache it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question