Welcome Guest, Not a member yet? Register   Sign In
Caching every 1 second
#6

[eluser]kevinprince[/eluser]
Better solution is:

Cache the returned db object in memcache etc
When the object is returned include the expiry time
Use this expiry time to build the view and use frontend code along with validation of the bid method to make sure you cant bid if the expiry based.

If you want you can cache the view and use javascript to evaluate if the auction has closed.


Messages In This Thread
Caching every 1 second - by El Forum - 01-16-2010, 03:12 PM
Caching every 1 second - by El Forum - 01-16-2010, 04:56 PM
Caching every 1 second - by El Forum - 01-16-2010, 05:21 PM
Caching every 1 second - by El Forum - 01-16-2010, 05:39 PM
Caching every 1 second - by El Forum - 01-16-2010, 06:03 PM
Caching every 1 second - by El Forum - 01-16-2010, 07:55 PM
Caching every 1 second - by El Forum - 01-17-2010, 08:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB