Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Jquery/Ajax update database every x minutes
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Kaz" data-source="post: 366256" data-attributes="member: 1611"><p>I suppose, but I was hoping to have an option where users could decrease the 'update time' whether it be completing a certain task, or reaching a certain level. Something like minus 10 seconds off their current time. Which is why I question</p><p>Would this then mean I would need to allocate a value for each user to determine which cron they run off?</p><p>And then have multiple crons which differ in a 10 seconds de-increments from the previous?</p><p></p><p>eg. range is 5 mins (base), with the potential to get down to 3 min 30.</p><p>Meaning this would require me to have 10 crons that start from 5mins and lower them in increments of 10.</p><p>That being said, some will be redundant, up until a person reaches the threshold to advance their timer so it is faster (which is a timeframe I can not determine as it is based on the users gameplay speed)</p><p></p><p>Would that not be wasting resources?</p></blockquote><p></p>
[QUOTE="Kaz, post: 366256, member: 1611"] I suppose, but I was hoping to have an option where users could decrease the 'update time' whether it be completing a certain task, or reaching a certain level. Something like minus 10 seconds off their current time. Which is why I question Would this then mean I would need to allocate a value for each user to determine which cron they run off? And then have multiple crons which differ in a 10 seconds de-increments from the previous? eg. range is 5 mins (base), with the potential to get down to 3 min 30. Meaning this would require me to have 10 crons that start from 5mins and lower them in increments of 10. That being said, some will be redundant, up until a person reaches the threshold to advance their timer so it is faster (which is a timeframe I can not determine as it is based on the users gameplay speed) Would that not be wasting resources? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Jquery/Ajax update database every x minutes
Top