Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
agentrickard,
Now I have another problem. The content on the My Site page is not getting updated. Currently it is 3 days old. This includes the weather module, news sources and content from the site itself. They all go back to the seventh which is also when I uploaded the lastest version. I am running cron job every 4 hours.
Comments
Comment #1
agentrickardSome of the content doesn't require cron at all. Aggregator and Weather are likely cached by the core modules.
This problem should not be internal to the MySite module. The module's cache settings (if you have turned them on) only last for a maximum of one hour.
Questions:
1) Do you have page-level caching turned on for your site?
2) For what users looking at whose MySite page is the content not updating?
Comment #2
agentrickardA URL would be helpful as well.
Comment #3
kforet CreditAttribution: kforet commentedPage caching is turned on and set to normal. I am currently experimenting with the module so it is my personal page and me accessing it. Here is the URL you asked for:
http://www.diatribune.com/mysite/kerry
Comment #4
agentrickardThanks. I suppose I will create an account and see.
As an anonymous user, most of the default MySite page is blank.
OK, I created an account, and everything updated. http://www.diatribune.com/mysite/agentrickard
It appears to me that Drupal's page cache is setting the content for anonymous users to a default state -- this is likely due to access control settings in Drupal. MySite respects access control rules for nodes. So, for example, if anonymous users can't see any nodes on your site, or they can't view comments, then the Recent Comments block on MySite will show blank.
Try modifying the core access controls for anonymous users and see if that affects display.
See especially the following permissions:
- access comments
- access content
This is also true of any sort of node_access module (like OG) that you have installed. All MySite data queries are filtered through Drupal's access control system.
So it seems to me that everything is working as designed. Does this make sense?
Note: changed title to reflect the issue more accurately.
Comment #5
agentrickardOdd. I created an account and it let me create a MySite page, but now my username [agentrickard] is unrecognized. I can't login and I can't request a new password.
Comment #6
kforet CreditAttribution: kforet commentedSorry about that. I had a Friday 13th expierience, database got corrupted, most recent backup was from the 10th so when I imported the backup your account was lost. My fault for not having more current backup. It seems like whenever anything is updated on My personal page like the backup all the data refreshes once, but then does not refresh again.
Comment #7
agentrickardBased on my test, it seems that you have MySite's internal cache turned on. That will cause the entire page content to be cached for X minutes. When you change content or settings, that cache is cleared.
Check your cache settings at /admin/settings/mysite. They are near the bottom of the options.
It is possible that something is wrong with the cache mechanism. (Especially if you don't have it turned on.)
My test: http://www.diatribune.com/mysite/agentrickard
Comment #8
agentrickardUnrelated note: The original style includes "red.css" and "blue.css" have been deprecated and should be removed.
Before deleting those files, you should run update.php, as it seems you may be running a version of MySite upgraded from 4.7 or 5.1.
The red and blue css files do not support the new JavaScript features.
Comment #9
agentrickardI went back to the site later and you are correct, my page has not updated.
I suspect that you have MySite's internal cache turned on. Try turning it off and see if the problem goes away.
It may also be that the cache is not expiring properly, which might be a server time issue.
To dig further, I would need to know some values from your database.
Table: {variable}
Name: 'mysite_cache'
Value: What is this value?
SQL:
SELECT value FROM variable WHERE name = 'mysite_cache';
Table: {cache}
cid: 'mysite:340'
expire: What is this value?
SQL:
SELECT expire FROM cache WHERE cid = 'mysite:340';
Comment #10
agentrickardBTW: I have never seen this behavior on the demo site. I have page caching turned on at http://therickards.com/mysite/default.
My 'minimum cache lifetime' is set to 'none.' This is a core Drupal feature at 'admin/settings/performance'.
What is yours set to?
Comment #11
kforet CreditAttribution: kforet commentedI just turned My Site Cache off and it looks like it updated. I will keep an eye on it and let you know if that in fact fixed the problem. Thanks for sticking with this. I really been nice. It is much easier to work with and I love the droplets. If the content refreshes regularly now it is a geat addition to the site. Thanks,
Kerry
Comment #12
kforet CreditAttribution: kforet commentedAs to the other questions you had. My "minimum cache lifetime" was also set to none.
These are the results I got from the DB queries:
the first was S:1:"0"
The second on the expiration was: expire = 1184539966
As stated earlier turning off cache on the module may have solved the problem. Thanks again for your help.
Comment #13
agentrickardSure. I think you might have uncovered a deeply hidden bug, because MySite's internal cache didn't seem to be working correctly. I'll go test it on my demo site.
Comment #14
agentrickardWhen I just turned on MySite's Cache, some the Aggregator items disappeared. This is obviously a bug, and I'll have to track it down.
My suspicion is that there is something happening during the cache process that it causing an error in some content.
I think I may have found it. If the cache is on, some of the format files may not get loaded correctly. In that case, the content can't be rendered at all.
My development machine is still under repair, so no proper patch.
Add, lines 686:
Will roll a proper fix later this week and commit.
Comment #15
agentrickardWow. This turned out to be worthwhile.
I had misunderstood the 'expire' value in the cache table. http://api.drupal.org/api/5/function/cache_set says
It is hard to say when the cache will get wiped (normally it's a garbage collection routine during cron). The MySite Cache is generally too short to be affected, so we have to manually check it:
Lines ~635
Will incorporate this into the fix. Thanks!
Comment #16
kforet CreditAttribution: kforet commentedThank you again for getting on this so quickly. I am not great with patches so I will probably wait for the next module update and leave cache off for now. Everything is updating on a regular basis now. Thanks again,
Kerry
Comment #17
agentrickardCommitted to HEAD.
Thanks for the great report.
Comment #18
(not verified) CreditAttribution: commentedComment #19
michael k CreditAttribution: michael k commentedthe google search shows my deleted page, is that what cache is?
how can i make it go away
Michael K
http://www.wowevil.com/