By Chill35 on
With cache enabled and set to Normal in Administer > Site Configuration > Performance, do you need to run cron.php ?
(There are no stupid questions...)
I am asking because I changed some lines in a contributed module, what it writes to the $links of nodes and my modifications weren't updated for hours for Anonymous users... until I ran cron.php manually. Just asking... trying to understand how cache works.
Is there good documentation somewhere on how Drupal 5 cache mechanism works in Normal vs Agressive modes besides the few sentences given in the Administer Panel ?
Thanks in advance.
Comments
Have you tried poormanscron
Have you tried poormanscron for running crontabs automatically?
-- Doug
yeah...
Sounds great for 4.7.4 Doug. Thanks for the link.
Not being ported to Drupal 5, though.
Any info about cache in Drupal 5 ? How it works ?
cron vs. cache
I think you are confusing two issues. The minimum cache lifetime just specifies how long old content will "resist" a call to cache_clear_all() and still be displayed to anonymous users. The typical way that cache_clear_all() is invoked is when a user submits a new post or comment.
While cron might cause the cache to be cleared, it usually won't. If you changed a module like this, there is no way for the Drupal core to know that there is something different about the pages, and hence the old content will be held in the cache.
For a site where I have the page cache enabled, I have a very small utility module that uses hook_cron to call cache_clear_all() every time cron is run so that the items in the event module calender, event block, etc. get updated and aren't days out of date if no one has posted new content that triggers a cache_clear_all().
This should be a functional module (for Drupal 4.7), save as zmod.module without the ending
?>---
Work: BioRAFT
WOHA!!!!
I love you!
Caroline
just one small thing
Why ?
I downloaded a module the other day from CVS directly and there was a missing "?>" and I thought it was a mistake... it wasn't ?
??
8-|
mmm...
No, it does not work.
Maybe Drupal 5 needs a dot install and a dot info with that.
I saved that php without the ending "?>" as zmod.module in a folder called zmod in my sites/default/modules...
It's not seen.
No problem.
Oh, yes- sorry you didn't
Oh, yes- sorry you didn't tag your initial post as Drupal 5 so I thought this was for 4.7. You need to put the information from hook_help into zmod.info.
see: http://drupal.org/node/64279
The lack of "?>" is preferred for included PHP files:
http://drupal.org/node/545
---
Work: BioRAFT