WP Super Cache
- Ajax - Wrong content loaded (1 post)

  1. Blutarsky
    Posted 4 years ago #

    I'm using an Ajax/jQuery call to load in the sidebar asynch content.
    Since I have enabled mod_rewrite, I get old & wrong content.
    What can I try?

    This the code that triggers jQuery call. Asynch load topposts.php into the foo DIV:

    <script type="text/javascript">
        /* this code loads asynchronously content into the div "foo" container*/
                 jQuery("#foo").load("/wp-content/themes/tgv1/topposts.php", "",
                    function(responseText, textStatus, XMLHttpRequest) {
                        if(textStatus == 'error') {
                            jQuery('#foo').html('There was an error making the AJAX request');

    topposts.php :

    require_once($_SERVER["DOCUMENT_ROOT"]. '/wp-load.php' );
    ....... more code here....

    Could Wp Supercahce suffer when accessing session variables? Or Ajax calls can scramble WP SuperCache?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic