Active
Project:
UC Node Access
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2011 at 17:56 UTC
Updated:
19 Jan 2012 at 02:36 UTC
I'm looking for info on exactly how the delay works. If I put in a 1 week delay, and the user purchases the node at 12:43 am on June 12th, does the node access get granted at 12:43 am on June 19th?
I'm trying to coordinate this with my MailChimp auto-responder notifications, so I need to make sure the node access is granted before the user gets the email telling them they can access it.
Alternatively, can the node access trigger a CA so I can just create a new predicate to send the email instead?
Thanks!
Comments
Comment #1
LPecunia commentedI did figure out that there is a CA trigger for when node access gets granted, but there is no email notification option in the related actions. Does this mean I have to build the action manually using the php option?
I'm really more of a front-end person than a real developer, I know just enough back-end stuff to be dangerous. :-/
If there's an easier alternative that I'm not seeing, please point me in the right direction. Thanks!
Comment #2
jeremy.zerr commentedThe processing for a future expiration is done via cron. Every time cron runs, it will check to see if there are any new actions to take, and if so will fire off the CAs. So you can only be as granular as your cron frequency is. But running cron every minute on a Drupal site doesn't work well because it clears caches and a bunch of other fun stuff. So use Elysia cron module, configure the uc_node_access cron to fire every minute, and leave the other cron hooks at bigger times. Then you'll be within +- 1 minute worst case.
Jeremy Zerr
http://www.zerrtech.com