I have a strange problem that I wasn't able to find a solution for after some googling. If I create a piece of content (doesn't matter what content type), and then later go in and edit it, the new edited version of the content is not available for Anonymous users to view. It is still the old, un-edited version of the content.

All Authenticated users can view the edited content just fine.

Any ideas?

Comments

wladimirww’s picture

Clear cache data /admin/settings/performance
__________________________________
My Drupal 6 livin' here

cog.rusty’s picture

Or disable caching.

This is the whole point of caching. Anonymous visitors only see the changes after a while, so that fewer database queries run.

Coop1979’s picture

No, unfortunately it's not a cache problem. Even after the cache is flushed (I'm using Boost), the edited versions are still not available to anonymous users.

I did go through the steps of disabling cache to be sure, but it had no effect.

cog.rusty’s picture

IMO it is clearly a cache problem. Where else could the old content be found?

The only question is "which cache?" Drupal's cache? Boost's cache? Server's cache? ISP's cache? Browser's cache?

Coop1979’s picture

I would agree that normally this would clearly look like a cache problem. But I have cleared Boost's cache, turned off caching completely, and have tried multiple browsers on multiple ISPs. I have a timestamp at the bottom of each page, so I can tell whenever the cache has been cleared for that page. It's been over a month on some pages that were edited/updated and they still aren't showing the edits for anonymous users.

cog.rusty’s picture

I don't know much about the boost module besides that it saves stuff in files. Does clearing its cache mean that those files have been deleted?

I can't test it seriously because my host has a lame-ass "25,000 inodes" restriction and I am always near the limit. Oh, well.. they love their database hits.

======= Edited to add:

I forgot to ask if cron is running properly on that site and if it helps to run http://example.com/cron.php manually.

gforce301’s picture

Are you by any chance using revisions and if so is it possible that anonymous users do not have the permission to see them? Just a stab in the dark.

cog.rusty’s picture

Hmm... you've got an idea here. Normally all user see the last revision, but maybe if Coop is using something like the http://drupal.org/project/revision_moderation which keeps the latest one unpublished, this kind of behavior could arise.

Coop1979’s picture

I actually am using Revisions, and have tried the permissions with Anonymous users being able to and then not being able to view Revisions. When I allow them to view Revisions, the node itself still appears the same, but with the added "Revisions" tab. If I go into the Revisions tab, I can view all of the past revisions just fine, but if I click on the current revision it just shows me the node as originally submitted.

cog.rusty’s picture

So, you are not using the revision moderation module?

Coop1979’s picture

no :(

cog.rusty’s picture

If a "Rebuild permissions" button appears in the admin/content/node-settings page, try it.

Coop1979’s picture

Thank you for that suggestion. I tried it, but it doesn't seem to have helped. I guess I'll try disabling modules one at a time and see if that helps.

cog.rusty’s picture

Another random idea: Try commenting out all the lines in the <IfModule mod_expires.c> section of Drupal's .htaccess file.

Coop1979’s picture

Blerg! I tried that and it also had no effect.

Thanks for continuing to offer ideas!

Coop1979’s picture

Just an update - I figured this out today.

I had to truncate the cache_node table. Now everything's fine.

EDIT: I had to completely disable Advanced Cache. Not sure what the problem is right now, but I'm looking into it.

IWasBornToWin’s picture

I was having a problem of anonymous users not being able to see any updates after I cleared cache and changed the minimum cache lifetime to one day. I changed it back to "none" and it fixed it immediately.