Hello everyone
I want to exclude this
http://www.renovacionmagisterial.org/portada/emisora
In this page, I want to load certain content, but just at certain hour. So I have some like this in the mymodule.block.tpl.php for a block for this page:
<?php
if($actual_hour == $happy_hour){
showAmazingStuff();
}
else{
showOtherStuff();
}
?>
Being "portada" the root folder, I add "emisora" in
/admin/config/system/cacheexclude
In admin/config/development/performance
I have checked all the items, and I have set "1 day" for the times
It seems don't work. It do showOtherStuff() always, until I do:
admin/config/development/performance CACHE FLUSH, then it do showAmazingStuff();
* In happy_hour, off course
What I'm missing?
Thanks
Comments
Comment #1
Augusto182 CreditAttribution: Augusto182 commentedHello... I just did the next:
And... It Works...
But I don't sure if this is the best way,
I would like that block be cached all the time, except for that "happy_hour"... any suggestion?
Comment #2
Augusto182 CreditAttribution: Augusto182 commentedComment #3
texas-bronius CreditAttribution: texas-bronius commentedHi - Just looking at your original post, if you are requesting to exclude, literally, "emisora" then that is what will be excluded. Probably you want to add to your Cache Exclude settings the full path:
portada/emisora
Of course, if you have subpages like node ids or whatever you might also want
Hope this helps -- Cheers
-Bronius
Comment #4
texas-bronius CreditAttribution: texas-bronius commented