Viewing 12 replies - 1 through 12 (of 12 total)
  • scribu

    (@scribu)

    Try disabling the “Use cron” checkbox from the plugin settings.

    Thread Starter archon810

    (@archon810)

    I changed it, reloaded the Archive page but nothing changed.

    I cleared the cache, refreshed it, then manually changed the timestamp on the cache file to something over 2 weeks ago. Refreshing the page still doesn’t refresh the cache.

    Do you have a fix that would figure out when the cache is stale?

    Artem
    https://beerpla.net

    I hope you’re using the latest version of the plugin (1.8).

    The cache directory is cleared every time you publish or unpublish a post.

    When you change a setting, a new cache file is created and used.

    Thread Starter archon810

    (@archon810)

    Using svn trunk, which is marked as 1.8.1a at the moment. Just updated to HEAD again. Will see if it happens again.

    BTW, what happens when new comments get posted? I’m showing the comment counts, so those need to be updated then.

    BTW, what happens when new comments get posted? I’m showing the comment counts, so those need to be updated then.

    I guess I should handle that case too.

    Updated svn.

    Thread Starter archon810

    (@archon810)

    It didn’t work. I just svn up’ed and posted a comment, then refreshed the archive page. Nothing changed. It still has a copy that is at least a week old.

    I guess the only workaround is to disable the cache altogether:

    In smart-archives-reloaded.php, comment out this line:

    $cache = @file_get_contents($file);

    Version 1.8.1 has a new “Clear cache” button on the settings page. Press it and see if it deletes the sar-cache directory. If it doesn’t, check the folder permissions.

    Thread Starter archon810

    (@archon810)

    scribu, I think it’s working now – one of your changes must have done it.

    I just posted a new post and got a comment on an older post, then went to the archive page, and everything is hunky-dory there.

    Thanks for your efforts :-]

    Artem
    https://beerpla.net

    just FYI i have tried enabling/disabling the cache and the plugin (latest ver) didn’t ever update for me.
    BUT… i did what you said above and commented out this line and it works perfect ?? so i think the cache is wonky perhaps
    $cache = @file_get_contents($file);

    thanks for the great plugin!!

    I’m having this issue as well: have to update the cache manually, otherwise it doesn’t show the latest posts.

    Not life-threatening, obviously, but somewhat puzzling.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: Smart Archives Reloaded] Cache doesn’t expire?’ is closed to new replies.