standard page node, standard frontpage view
enabled content cache, comments and page type
no minimum and no maximum set

when editing a page, the cache is not flushed.
In the table timestamp gets updated, C1 = NULL, C2 = page

When adding a comment, C1 becomes changed and cache is flushed.
So I guess the C1=NULL seems to be the problem?

CommentFileSizeAuthor
#5 views_content_cache-919282.patch2.56 KBsteven jones

Comments

ednique’s picture

After further investigation I found that if comments is activated, the cache gets refreshed when comments are added.
When disabling the comments checkbox, the cache refreshes perfectly when the node is updated AND the comments are updated.

Thus please make it more clear in the admin interface...

Check refresh on comments only
OR refresh when node type is updated/commented.

yhahn’s picture

Title: editing a node does not refresh cache » improve clarity of conditions in admin UI
Category: bug » task

Agreed, the way the conditions are presented in the UI is not clear.

dagmar’s picture

steven jones’s picture

Version: 6.x-2.2 » 6.x-2.x-dev
Category: task » feature
Status: Active » Needs work
steven jones’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new2.56 KB

Adding to some more documentation to the settings pane, though breaking all existing uses of this plugin.

steven jones’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 6.x-2.x in http://drupal.org/cvs?commit=487938.

steven jones’s picture

Status: Fixed » Needs work

Argh! This hasn't really helped at all, I'm still confused!

YK85’s picture

Hello,

Does this thread refer to the below settings?

Comments:
[ ]New or updated comments
Checks for new or updated comments

Node only:
[ ]Nodes updated/created/deleted
Allows the node segment to be refined to only include main operations create/update/delete. Be careful about combing with other node related segments.

I want the page to refresh when the node or comments in the node are updated.
How do I set this up?

Thank you so much!

ccshannon’s picture

Yes, I, too, believe the instructions on the UI could be better.

What is the purpose of the two AND'd checkboxes mentioned by YK85 in #8 above?

I'm guessing that if one checks the per-content types at the top of the Content-based cache UI form, then the cache will flush when a node is updated/created/deleted OR if a comment is posted/updated.

I'm guessing that one checks the Comment box ONLY if one wants the cache to flush when a node is updated/created/deleted AND a comment is added/deleted.

I'm also guessing that the "node-only" checkbox should be selected if one only wants the cache to flush on node create/update/delete ONLY with comments changes having no effect on cache flush.

Could someone who maintains or has experience with this module confirm my guesses? Much appreciated to anyone who can help with this, as I can see I am not the only one completely confused by the wording in the UI.

The VCC module is almost a necessity if using Views and Contexts extensively. It would greatly improve the value of this great module to have the instructions be a bit more clear.

Thanks!

2pha’s picture

Issue summary: View changes

Ran into this today. 7.x branch
I had both "New or updated comments" and "Node only" checked. View did not flush as I expected (when nod is created/updated/deleted or when comment is posted).
This still needs work to make it more clear what these checkboxes do.

jwilson3’s picture

Yes, the text explanations on this are also driving me crazy here too.

* The fieldset description text talks about AND'ed and then proceeds to provide examples using "or".
* It seems that the "Only Comments" and "Only Node create/edit/delete" options simply conflict with eachother.

I'd propose something like the following:

The conditions in this section will get AND'd together to further refine when to refresh the cache. For example, you can flush the cache when anything happens to a 'page' node (anything including add/delete or new comment) by selecting from the list of Node types. Alternatively, you could refine this to only refresh when the node is a 'page' AND a comment is created/updated.  Finally, you could limit the cache flush only when the node is a 'page' AND the node is created/edited/deleted ONLY.

Node types:
[ ] Page
[ ] Article

Limiting actions:
[ ] Only flush cache when a comment is created/updated/deleted on the node.
[ ] Only flush cache when the node is created/updated/deleted.
Note: Do NOT select both of these options.  Leaving both options unchecked means the cache will be flushed when either comments or nodes are created/edited/deleted. 
Chris Charlton’s picture