• Hi all,

    I’m just learning about the wonders of WP Super Cache and for the most part it’s working great, but when I enable Super Cache (ON mode) it caches the index page which and the front page of the blog doesn’t refresh. I have index.php in the rejected URI field, but it’s still doing it.

    Does anyone know how to solve this?

Viewing 6 replies - 16 through 21 (of 21 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Nah. Think harder. Use javascript with a non-scripting fallback.

    <!-- in the head somewhere -->
    <script type="text/javascript">
     ...some javascript to set the background-image of the div to a random image...
    </script>
    <noscript>
     <style>...css code to set the background-image of the div to some image...</style>
    </noscript>
    
    ..later, in the body..
    <div id="whatever"></div> <!-- holds the background image -->

    See?

    So, any answer to why the index page is cached even though “index.php” is an excluded string?

    Or rather, why wouldn’t it be, since with “pretty” permalinks, every single page is index.php, too.

    Perhaps the solution is to have an option like “Clear all cache files when a post or page is edited” but applying just to the index page cache.

    Our WordPress blog runs in its own directory. Posts are written in the dashboard and published immediately. The index page appears to be cached for both wp-cache and wp-supercache. Version 0.8.4, WordPress 2.6.

    Try deleting the “index.php” exclusion string.

    I did that and everything seems to be working as it should. The index is cleared with every edited and new post.

    (One odd thing, though: although I’m logged in, it’s being provided by supercache.)

    problem solved updating to the new version

    Hmmm, I still have a problem with the main page (https://www.rishi-kumar.com/index.php) being cached by the latest version of WP Super Cache. I’ve temporarily disabled the plugin, but just to give you an idea of my set up.

    Site: https://www.rishi-kumar.com
    Installation: …/home/public_html/
    Super Cache ver: 0.8.4 (latest)

    Rejected URIs:
    index.php
    wp-.*.php

    I tried removing the index.php from the rejected URI list, clearing the cache, clearing my browser cookies/cache, and then revisiting the website. WP-Super Cache still processed the main page (index.php).

    Is anyone else experiencing this?

    I’m having the opposite problem, where WP Super Cache won’t cache my index.php file. Any ideas?

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘WP Super Cache super caching index.php’ is closed to new replies.