Closed (fixed)
Project:
Rules
Version:
6.x-1.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2011 at 18:44 UTC
Updated:
10 Jun 2012 at 12:41 UTC
I need to use rules to keep various caches updated as content changes. Right now I have one rule for each content type clearing views and panel page caches. Is there a more efficient way to do that other than individual ones for each content type/view? Here is an example of what goes on during a page being saved:
0 ms "Content is going to be saved" has been invoked.
0.058 ms Executing the rule "Clear blog cache" on rule set "Content is going to be saved"
0.205 ms Condition "Created content is Blog entry" evaluated to FALSE.
0.251 ms Executing the rule "Clear news cache" on rule set "Content is going to be saved"
0.327 ms Condition "Content is News" evaluated to FALSE.
0.362 ms Executing the rule "Clear article cache" on rule set "Content is going to be saved"
0.435 ms Condition "Saved content is Article" evaluated to FALSE.
0.47 ms Executing the rule "Clear bestseller cache" on rule set "Content is going to be saved"
0.543 ms Condition "Saved content is Published Book" evaluated to FALSE.
0.578 ms Executing the rule "Clear booklist cache" on rule set "Content is going to be saved"
0.652 ms Condition "Saved content is Published Book" evaluated to FALSE.
0.686 ms Executing the rule "Clear contest cache" on rule set "Content is going to be saved"
0.759 ms Condition "Saved content is Contest" evaluated to FALSE.
0.794 ms Executing the rule "Clear forum topic cache" on rule set "Content is going to be saved"
0.866 ms Condition "Saved content is Forum topic" evaluated to FALSE.
0.901 ms Executing the rule "Clear reviews cache" on rule set "Content is going to be saved"
0.974 ms Condition "Saved content is Book Review or TLT Book Review" evaluated to FALSE.
1.01 ms Executing the rule "Clear scheduled event cache" on rule set "Content is going to be saved"
1.088 ms Condition "Saved content is Scheduled Event" evaluated to FALSE.
1.136 ms Executing the rule "Clear specialty cache" on rule set "Content is going to be saved"
1.249 ms Condition "Saved content is Specialties" evaluated to FALSE.
1.29 ms Evaluation of "Content is going to be saved" has been finished.
I didn't have any rule running for this type, but it still shows all the others. I'm just looking for ways to speed things up anywhere I can.
Comments
Comment #1
mitchell commentedCheck out https://drupal.org/project/cache_actions
Comment #2
wxman commentedI actually did try it. So far so good. Thanks.
Comment #3
mitchell commentedYou're welcome. In the future, please update issues you submit to reflect your latest work.