WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
[resolved] Why do admin visits generate wp-cache-xxxx files? (6 posts)

  1. Joost Schuur
    Member
    Posted 4 years ago #

    I understand the principle of SuperCache, in that it generates static files that are served to users who aren't logged in or have not left a comment, but when I connect to the site while logged in as the WordPress admin, why does this generate files in wp-content/cache directory in the format wp-cache-xxxxx? They too contain 'Cached page generated by WP-Super-Cache on' in the footer.

    SuperCache seems to be doing it's thing just fine on my site (http://iosdevgoodies.joostschuur.com). Non logged in users trigger the creation of static files under the usual hostname and URL slug based filenaming convention in the supercache folder and are then used for subsequent visits. I'm running nginx, and have the appropriate rewrite rules enabled for that web server (from http://wiki.dreamhost.com/Nginx). I just assumed that logged in users wouldn't generate any files and wanted to make sure all is going as designed here.

    Side note: The header on the settings page reads 'Mod rewrite may not be installed!'. That's true of course, since I'm using nginx, but I have the appropriate rewrite settings for my ngix.conf applied, so everything should be alright, correct? The plugin simply can't detect the nginx config and that's why the warning?

    Everything seems to be working. I even modified one of the static files from the supercache folder manually and the change correctly appeared when I refreshed the page.

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Read the readme.txt, it's the difference between anonymous users and users with cookies set who are known.

    Everything should be ok, ignore the mod_rewrite warning. It's handholding for those who may not know about it.

    Glad it's working ok, especially with nginx :)

  3. Joost Schuur
    Member
    Posted 3 years ago #

    I didn't see any explicit reference to SuperCache creating wp-cache-xxxxx files for admin users, but I'll take your word for it that it's intended behavior. There's some comments in the FAQ section about 'WP-Cache vs Supercache files', but no specific comments about logged in users.

    Are you saying that logged in users fall back to another caching mechanism that generates these files?

  4. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Yes.

  5. Marcelo Pedra
    Member
    Posted 3 years ago #

    Hi there Donncha, let me ask you WHY another caching mechanism is in place to generate the files for logged in users. If I UNCHECK "Don’t cache pages for known users." the pages will still be cached using that different mechanism?

  6. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Kent - because supercache files aren't cached with the login info/cookie of the user as the key to the cache file. Only anonymous users get supercache static files.

    Yes, every user could get supercache files but it's not worth it IMO as it wouldn't be as flexible and would make the plugin even more complicated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic