Allow user to set update interval

timhill - August 10, 2009 - 22:08
Project:Browscap
Version:6.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Patch adds a setting to browscap to allow user to determine how often browscap should check garykeith.com for new data. User can set the interval to any number of days, 7 days is still the default. Setting the number of days to 0 turns off updating.

AttachmentSize
browscap-interval.patch2.72 KB

#1

jcruz - August 11, 2009 - 01:24

subscribe

#2

greggles - September 16, 2009 - 22:30

Can you explain the motivation for this? It feels like useless UI cruft to me, but I've just started using the module.

#3

timhill - September 17, 2009 - 22:29

It's a little crufty, I'll admit. My main motivation with the patch was to add the ability to turn off auto-updating. This is useful for situations where a server cannot "phone out" and for users who would like more direct control and would prefer to update the browscap file manually. I decided to make the patch able to set the update interval just in case someone still wanted auto-update but didn't want to "phone out" so often.

#4

greggles - September 19, 2009 - 22:25

I wanted to test this and had to re-roll it. I also tweaked the spacing on the multiplication. It seems good to me - can you confirm that it still works for you? If so then we could commit it.

AttachmentSize
545384_browscap_interval.patch 2.78 KB

#5

timhill - October 9, 2009 - 19:44

Sorry for the delay, the patch looks good, works in version 1.1

 
 

Drupal is a registered trademark of Dries Buytaert.