My module needs to add something to a node object, only if the rendered node is not going to be cached as part of page cache.
Is there a way to determine whether the currently generating page is going to be cached or not.

I cant simply assume all pages to anonymous users will be cached. Because, If a form with captcha gets generated in the page, the captcha module disables caching.

Any help is appreciated.

Comments

cog.rusty’s picture

There is the http://api.drupal.org/api/function/page_get_cache/6 function which has a $status_only parameter.

--- Edit:

Oops. You are on Drupal 5. That doesn't apply.

greylogic’s picture

Thanks Anyway.