Closed (fixed)
Project:
Cache Expiration
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2011 at 23:30 UTC
Updated:
10 Jul 2013 at 12:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
davidwhthomas commentedWe've found the expire module is quite noisy in the drupal watchdog log, especially on larger sites with lots of pages - it quickly fills up.
The attached patch addresses the same issue as in D6, but was written for the D7 version.
It provides a checkbox admin setting, a new expire_watchdog_log wrapper function and checks if logging is enabled prior to the watchdog call.
Attached.
Cheers,
DT
Comment #2
derekw commentedThanks for the patch. I found it also needs to update the watchdog function called at the end of expires.rules.inc from watchdog to expire_watchdog_log.
Comment #3
wiifmNew rolled patch attached that builds on the patch in #1.
Changes from #1:
This is especially handy in my situation as we are altering the expire paths, and sometimes we remove all of the paths. This means in the current version of the expire module that the watchdog log is filled with this:
Node 18205 was flushed resulting in pages being expired from the cacheWhich is a meaningless watchdog call as no pages were expired.
Comment #4
spleshkaThis issue was solved in 7.x-2.x. But thanks for the patch anyway!