Troy
unread,Jan 26, 2011, 10:08:28 AM1/26/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Limonade
Is there a way to break out of processing the regular order of
functions in the before or configure functions? I am not finding one
beside a halt() or a redirect_to(), or even a die(). All of which I do
not want to do.
The idea is that I will check if a page is cached and skip regular
processing. Ideally, I would like to go to after().
I have a good function for creating a cache in after if the page was
not cached yet, but I would really like to use the cache as early as
possible in app. I tried just calling after() in the before function,
but that does not seem to skip the regular processing of functions.
I see in the core limonade.php run() how the before and after are
called. Would just like a way to drop out of that and display the
cached page.
Being able to do this before I configure things like a database
connection would be the best, like a before_configure().
Any ideas?
I suppose I could just not run limonade if the page is cached, but I
think some processing control function or flag might be nice.