Closed (fixed)
Project:
CacheExclude
Version:
6.x-2.0
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Reporter:
Created:
2 Apr 2008 at 17:46 UTC
Updated:
10 Mar 2009 at 21:00 UTC
Hi,
Since hook_init is not run on pages that are already cached, I was wondering if a validation or submission callback should be created for the settings form so that the the cache can be cleared on the specified pages. That way, the admin does not have to go to the performance page if they see an issue that a page that was cached is showing up a certain way.
-BTM
Comments
Comment #1
Crell commentedThat makes sense. I'm not sure when I'll have a chance to roll a patch, but if someone else wants to I'd commit it.
Comment #2
btmash commentedI should be able to get a patch around on wednesday or thursday of this week (no access to my set of code for testing till then :()
Comment #3
btmash commentedI don't have it in patch format, but I'm wondering if this would be the way to go about it...
Comment #4
greg.harveyRuns even on cached pages:
http://api.drupal.org/api/function/hook_boot
Comment #5
Crell commentedThere's no patch here.
It's probably better for performance to do a complete flush when the settings change than to add a boot hook. boot hooks can be quite expensive since they require stating another file.
Comment #6
mbutcher commentedBTMash's suggestion has been coded up and committed. It will be available in 6.x-2.1.
Comment #7
mbutcher commented