• Resolved fred74

    (@fred74)


    Hello,

    Thank you for this really great plugin.

    I have implemented successfully dynamic caching, I have access to wp functions using lazy loading, however, due to the way dynamic caching is working, I understand that my dynamic content is created before $GLOBALS[‘wp’] variable has been fully initialized.

    Is there any (good) way to make it ? I know that it would be less performant.

    Thank you for any piece of advice !

Viewing 1 replies (of 1 total)
  • Thread Starter fred74

    (@fred74)

    I finally used :

     if(empty($GLOBALS['wp']->query_vars)) {
                                    $GLOBALS['wp']->parse_request();
                            }
    

    I also recommend to generate all dynamic contents (that require lazy loading) into widgets.

Viewing 1 replies (of 1 total)
  • The topic ‘Reading main wp_query with dynamic caching with lazy loading’ is closed to new replies.