• Resolved little_bird

    (@little_bird)


    Hi,

    The plugin is not caching the home page of my site. In the List of cached files the home page is never listed. Also the listed pages has a wrong URI, for example, the contact page is dbg-inv.com/index.php/contact-us/ but is listed dbg-inv.com/contact-us, without the index.php part.

    The log file shows

    13:55:17 138342 / wpsc_get_auth_cookies: no auth cookies detected
    13:55:17 138342 / wpsc_is_caching_user_disabled: false
    13:55:17 138342 / ACCEPT: text/html
    13:55:17 138342 / wp_cache_get_cookies_values: return:
    13:55:17 138342 / supercache dir: ABSPATH/wp-content/cache/supercache/dbg-inv.com/
    13:55:17 138342 / No Super Cache file found for current URL: ABSPATH/wp-content/cache/supercache/dbg-inv.com/index-https.html
    13:55:17 138342 / wp_cache_get_cookies_values: return:
    13:55:17 138342 / In WP Cache Phase 2
    13:55:17 138342 / Setting up WordPress actions
    13:55:17 138342 / Created output buffer
    13:55:17 138342 / wp_cache_get_cookies_values: return:
    13:55:17 138342 / wpcache_do_rebuild: doing rebuild for ABSPATH/wp-content/cache/supercache/dbg-inv.com/
    13:55:18 138342 / DONOTCACHEPAGE defined. Caching disabled.
    13:55:18 138342 / wp_cache_maybe_dynamic: returned $buffer

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Donncha O Caoimh (a11n)

    (@donncha)

    Some plugin has defined the constant “DONOTCACHEPAGE” which stops the front page being cached.

    It appears the contact-us page is cached correctly, despite the different URL. Do you mean the “Contents” page that shows cached pages? That’s where the “index.php” is missing?

    Thread Starter little_bird

    (@little_bird)

    Yes, in the “Contents” tab is where the index.php part of all URIs is missing. How can I search which plugin is setting the DONOTCACHEPAGE constant without disabling any of them?

    And another question, what is the DO NOT CACHE PAGE?secret key for?

    Plugin Author Donncha O Caoimh (a11n)

    (@donncha)

    The Contents page removes “index.php” I think to make the display clearer. I think. I haven’t looked at that bit of code in years. To get Supercache working you need “fancy permalinks” and your site is the only one I’ve seen that puts “index.php” into the permalink like that. I don’t think this will ever change, but if you could take a look at the code and suggest a fix I would gladly look at it.

    If you have console access to your server you can search for DONOTCACHEPAGE using this command:

    grep DONOTCACHEPAGE * -r

    Run that from wp-content/

    If not, then download the wp-content/mu-plugins, wp-content/themes and wp-content/plugins folders to your computer and use your desktop machine’s search facililty to search for that string.

    Thread Starter little_bird

    (@little_bird)

    Hi,

    I found out Polylang was setting the DONOTCACHEPAGE?constant to true through the Browser Language Detection feature.

    Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin is not caching the home page’ is closed to new replies.