WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
[resolved] Preload Cache Now button doesn't do the job (28 posts)

  1. Haoxian
    Member
    Posted 3 years ago #

    Hi,
    I just upgraded to the latest version of WPSC right now. But the problem I found is that when I click the button "Preload Cache Now" on page of "Preload", it says to rebuild the super cache files but after about 30 minutes, the super cache files are not generated.

    Instead, if you open a webpage in the browser, the webpage then is generated in the supercache dir.

    What can I do?

    Here is the debug info I got:

    No wp-cache file exists. Must generate a new one.

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Strange. Check your access_logs for hits on wp_cron.php

    Do scheduled posts work on your host?

  3. Haoxian
    Member
    Posted 3 years ago #

    Thank you, donncha!

    But I don't know how to check the access_logs for hits on wp_cron.php.

    Could you give a hint?

  4. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    It's different on every host unfortunately. You should talk to your hosting support about it.

  5. Haoxian
    Member
    Posted 3 years ago #

    Something new:

    The "Preload Cache Now" button DO clear the old supercache files, but don't generate new files.

    I also get a message from debug like that:
    supercache dir: xxx/htdocs/wp-content/cache/supercache/cnzhx.net/wp-admin/options-general.php/

    Does this means that WPSC is attempting to cache a wp-admin webpage?

    Could I downgrade WPSC to version 0.9.9.3 ? This problem occurred only after the upgrading. And I'm using WP 3.1 alpha.

  6. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Something weird happening on your server. It shouldn't try to cache wp-admin hits! Sure, you can downgrade but it won't fix the problem long term as you may want to upgrade in the future..

  7. Haoxian
    Member
    Posted 3 years ago #

    I don't know how to fix it, so, just let it be.

    Maybe, it's a compatible issue between wp 3.1 alpha and this new version wpsc.

    Thank you, donncha! You're so appreciate!

  8. Haoxian
    Member
    Posted 3 years ago #

    OK, I found the reason.

    That's because the webhosting server restricted the cron job feature, and had nothing to do with the WP or this wonderful plugin of WPSC.

  9. Marcelo Pedra
    Member
    Posted 3 years ago #

    Hi there people, I want to comment I'm also seeing the same issue about this: The "Preload Cache Now" button DO clear the old supercache files, but don't generate new files.
    I'm using WP 3.0.1 and WPSC 0.9.9.6. I've setted preload cache with this settings:

    - Refresh preloaded cache files every 0 minutes. (I don't update too often the blog, so it's a non-sense to update cache often)
    - Preload mode: marked

    The "Preload Cache Now" button DO clear the old supercache files, but don't generate new files. I have to delete entire cache first, then preload. Is there any workaround? is this a bug? My blog have about 900 posts and it is permanently visited, so deleting the cache in order to be able to preload impacts negatively in my poor server. If WPSC could only regenerate those files after deleting them, the magic would be complete ;)

    Any hint?

  10. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Kent Brockman - try the development version, from the "Other Versions" page linked from the plugin homepage here. That may help.

  11. Haoxian
    Member
    Posted 3 years ago #

    As I pointed out that after I moving to another host, the problem had never showed up again.

    I also write about this in Simple Chinese (because I am not sure whether I can write it in English).

    If you are interesting, here is the post. If you could not read Simple Chinese, you could use Google translate.

    By the way, Kent Brockman, are you using a free hosting plan like xtreemhost.com?

  12. Marcelo Pedra
    Member
    Posted 3 years ago #

    ok donncha, you say that the behaviour I'm seeing is not normal? When Preload Cache now is pressed it should regenerate all the cache files, right?

    lonelicloud - I run my own VPS server. Maybe I some preferred setup is needed I can check and eventually recompile Apache and PHP if I don't have the needed plugins, like gzip (which I have of course already installed).

  13. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Kent Brockman - yes, it preloads all posts and pages, but not archive files. Or should do.

    Also try the debug system built into the plugin. That will help a great deal!

  14. Marcelo Pedra
    Member
    Posted 3 years ago #

    Hi donncha, I've installed the development version and now it is not deleting the cache files when I click "Preload Now". However, those cache files aren't being updated. Is this normal because the posts have not be updated too?
    Is there any way to manually force Preload without having to set "Garbage Collection" to another value than 0 and "Refresh preloaded cache files" to another value than 0 minutes?

    All this is due to my template, which read dynamic php data from a third party db and publish those ads using HTML. The only way I have to update those ads is deleting cache, and then, Preload now..

  15. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    When you click "Preload Now", your blog should update all the posts on your site, but it could take anywhere from a few minutes to a few hours depending on how many posts you have. (It can't do all posts instantly)

    Obviously something is going wrong on your site, try the debug system and check the log as there might be something that that will tell you why it's not working.

    You should display those ads using Javascript like Google Adsense does. Don't tell me it can't be done, because it can :)

  16. Marcelo Pedra
    Member
    Posted 3 years ago #

    Hi there donncha, I've upgraded to the development version and it simply cached the whole site more quickly. When I click "Preload Now", the blog should only update the cache file only if there are new posts? or not?

    The debug system didn't show relevant info. But, all in all, I turned the ad system to a .js array based source and at less the ads are being more dynamically updated without having to touch the cache. Good idea. Thanks!

  17. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    No, "Preload Now" will preload all (or however many you want) posts on your sites, regardless of how new they are.

  18. Marcelo Pedra
    Member
    Posted 3 years ago #

    Well, that's not working in such a way. I'm testing the plugin in several blogs.

    The last stable version, just deleted the cache without regenerating it. A second click on Preload Now after the "Preload Cache Completed" mail arrived, rebuild the cache.

    In the development version, I noticed when I click on "Preload Now" it will preload a post ONLY if its cache file is not present, and simply leave all the other cache files alone.

    In both cases I use the plugin in Preload Mode, and Refresh preloaded cache files every 0 minutes.

    Now tell me, what is the intended right behaviour?

  19. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Preload mode is supposed to preload all the posts and pages on your blog. It's supposed to clear the cached page before generating a new cached file.

    It's obviously not working properly on your site though :(

  20. Marcelo Pedra
    Member
    Posted 3 years ago #

    ok then, let's begin checking what php extensions are required to be enabled? zip, bzip, gzip, curl...? I'm using 5.2.14 with MySQL 5.1.51 on a Linux+cPanel based vps server.
    The debug system is not indicating relevant info.

  21. Haoxian
    Member
    Posted 3 years ago #

    Hi, donncha

    It seems that I run into the same situation with Kent Brockman.

    After upgrading to the newest alpha version of WP 3.1, the current stable version of WPSC doesn't preload correctly as you described upper.

    Then I follow your advice to Kent Brockman, upgrade WPSC to the development version. It still doesn't preload correctly and the plugin doesn't send me the notification message of beginning to preload.

    I haven't done a debug test.

  22. Marcelo Pedra
    Member
    Posted 3 years ago #

    lonelicloud - I'm using WP 3.0.1 and I AM receiving the Start/Completed messages, with both the WPSC stable/development.

  23. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    If preload isn't working, the next best thing to do is leave your user agents textbox empty. That way search engine bots will visit your site and populate your cache.

    It's not ideal but preload works for me and it can be difficult to debug when I don't have direct access to servers.

  24. Haoxian
    Member
    Posted 3 years ago #

    @Kent Brockman - If you could receive the Start/Completed messages, the WPSC must be working properly.

    @donncha - I had a test on this just now. It seems to be the same as I described at the very beginning. It's so weird! Here is the log message: http://cnzhx.net/wp-content/cache/e6d5643c7c7c21d2ccca42e310561fcd.txt

  25. Marcelo Pedra
    Member
    Posted 3 years ago #

    @lonelicloud - Receiving the Start/Completed messages doesn't seems to be enough prove that WPSC is doing well its job. By some reason, the plugin is behaving as described in my posts above.

  26. Marcelo Pedra
    Member
    Posted 3 years ago #

    @lonelicloud - I must say that my debug files looks like yours. The plugins logs all your browsin thru the admin panel.

    @donncha - I think the debug system should bring more information about the cache process, have it regenerated some or all files? are them ok? The debug level of 5 is not as verbose.

    This was generated in a WP 3.0.1 with WPSC from the last develpment version. When clicked Preload Now with debuging enabled at level 5, the cache was not finally regenerated, all the cache files remains with their original creation date from 6 days ago, and this is the debug log:
    http://www.balleteleftheria.com.ar/blog/wp-content/cache/d863eadfe727ead531a27525d65a28d9.txt

    What can be wrong?

  27. Haoxian
    Member
    Posted 3 years ago #

    @Kent Brockman - I'm just running into the situation you described before. And I noticed that if you clicked Preload button without emptying the cache, WPSC would only refresh cache of posts but not pages even homepage.

    @donncha - You could visit my site http://cnzhx.net/ and check the page source code on this phenomenon. I just Preload all site without emptying the old cache about 3 hours ago.

  28. Marcelo Pedra
    Member
    Posted 3 years ago #

    @lonelicloud: probably, by some reason we both have some kind of same setup in our servers. It's kind weird that there is anybody else claiming for the same issue. Or maybe we just discover a bug for certain scenarios not covered by the plugin. I'm sorry I have not enough skills on WP plugin programming, as I'd like to help debugging this situation :(

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic