Skip to main content
11 events
when toggle format what by license comment
Jun 10, 2019 at 20:16 comment added LarS @kiamlaluno Thanks for your answer. To tell Drupal, that there is a new hook, cache rebuild i.e. by drush cache-rebuild/drush cr in D8 (cache clear i.e. by drush cc all in D7) is just fine, it always worked for me.
Jun 10, 2019 at 5:26 comment added avpaderno @LarS Because that is the way to let Drupal understand there are new hooks in an existing module. It's the only one I can rely upon.
Jun 10, 2019 at 4:07 comment added LarS @kiamlaluno Why do we need to uninstall an enabled module on editing, and why isn't cache clear (cache rebuild like drush cr) enough?
Jan 28, 2017 at 11:24 history edited avpaderno CC BY-SA 3.0
fixed a typo
Apr 28, 2016 at 13:16 comment added Alex i've updated my question, still no luck even after deinstalling an reenabling the module. only the max age 0 works...
Apr 28, 2016 at 13:12 comment added Alex yes it does use it
Apr 28, 2016 at 13:11 comment added avpaderno Also, does your block class uses the BlockBase class as parent class?
Apr 28, 2016 at 13:11 comment added Alex okay, but adding the maxAge 0 works, strangely!
Apr 28, 2016 at 13:10 comment added avpaderno If you are editing a module that is enabled, you need to first uninstall it, before editing it. Clearing the cache is not enough.
Apr 28, 2016 at 13:08 comment added Alex thanks, but on /node/2 the block still outputs 1 when I visited node/1 in the first place, after clearing my cache
Apr 28, 2016 at 13:06 history answered avpaderno CC BY-SA 3.0