Results 1 to 3 of 3

Thread: VBside method to guarantee new server tracker pngs will not be cached

  1. Registered TeamPlayer [CoFR]SirMoo's Avatar
    Join Date
    04-07-09
    Location
    Pegasus Galaxy
    Posts
    1,560
    Post Thanks / Like
    Blog Entries
    3
    Stat Links

    VBside method to guarantee new server tracker pngs will not be cached VBside method to guarantee new server tracker pngs will not be cached VBside method to guarantee new server tracker pngs will not be cached VBside method to guarantee new server tracker pngs will not be cached
    Gamer IDs

    Steam ID: SirMoo
    #1

    VBside method to guarantee new server tracker pngs will not be cached

    Quote Originally Posted by [CoFR]SirMoo View Post
    Have the server status checker code generate a dynamic filename for each check it does per server. Say tag the end of the canonical name with a timestamp so a check of CS-01 at some time it would generate CS-01-1307842209.png then if it checks 60s later the rendered image would now be called CS-01-1307842269.png etc. After this, write the name of the generated dynamic filename to CS-01-currentname.txt. Then have your VB sidebar template (just add a PHP hook) read CS-01-currentname.txt to get the correct dynamic filename to use in creating the HTML. That would guarantee an uncacheable image since each time the server status gets refreshed, the browser would see an incrementing filename in the rendered HTML from VB and would fetch the up-to-date image. Voila, permanent non-caching! To prevent the proliferation of previously timestamped images, either schedule a deletion of all pngs not currently listed in *-currentname.txt periodically or have the server checker code do it after each update (i.e. server checker reads CS-01-currentname.txt before rewriting it to get the name of the to-be-deleted old png), I leave the exact implementation up to you, the reader-programmer , but the general idea is sound I think.
    Last edited by [CoFR]SirMoo; 07-06-11 at 03:19 AM.

  2. Registered TeamPlayer WileECyte's Avatar
    Join Date
    10-28-07
    Location
    Richardson, TX
    Posts
    17,410
    Post Thanks / Like
    Blog Entries
    3
    Stat Links

    VBside method to guarantee new server tracker pngs will not be cached VBside method to guarantee new server tracker pngs will not be cached VBside method to guarantee new server tracker pngs will not be cached VBside method to guarantee new server tracker pngs will not be cached VBside method to guarantee new server tracker pngs will not be cached VBside method to guarantee new server tracker pngs will not be cached
    Gamer IDs

    Steam ID: wileecyte WileECyte's Originid: WileECyte
    #2

    Re: VBside method to guarantee new server tracker pngs will not be cached

    We've got it covered, Moo. The issue we had was the cron job that generates the images broke so the images weren't being updated. All is well now.

  3. Registered TeamPlayer [CoFR]SirMoo's Avatar
    Join Date
    04-07-09
    Location
    Pegasus Galaxy
    Posts
    1,560
    Post Thanks / Like
    Blog Entries
    3
    Stat Links

    VBside method to guarantee new server tracker pngs will not be cached VBside method to guarantee new server tracker pngs will not be cached VBside method to guarantee new server tracker pngs will not be cached VBside method to guarantee new server tracker pngs will not be cached
    Gamer IDs

    Steam ID: SirMoo
    #3

    Re: VBside method to guarantee new server tracker pngs will not be cached

    cool thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Title