Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Hide and Seek Cache

Hide and Seek Cache

Scheduled Pinned Locked Moved The Weird and The Wonderful
2 Posts 2 Posters 105 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kmoorevs
    wrote last edited by
    #1

    I recently helped a customer move a self-hosted web application to a new server, also self-hosted. With a few tweaks, it was working but a couple of pages needed additional tweaking. A week later and we replaced 2 files. Suddenly, the app started crashing on those 2 pages only...all other pages worked flawlessly.

    My first guess was incorrect...it was not a permissions issue. (30 minutes wasted)
    My second guess was also incorrect...it was not a configuration issue. (20 minutes wasted)
    My third guess was correct, but logically, it didn't make sense at the time, so I talked myself out of it.

    Of course, there was only a generic 500 to start with, so walked a tech through enabling detailed errors.

    We finally discovered that an include file used by 80% of the pages in the app, had somehow gone missing. The unchanged files apparently pulled it from cache while the changed files triggered a new request. Doh!

    Confession: This is the last Classic ASP app I have running in the wild. It is down to 1 customer and not worth the effort of a rewrite. That said, it actually reminds me a lot of blazor, mixing tags and code. Also, it says alot that this app has mostly remained untouched for years, but still gets the job done. (earns money)

    1 Reply Last reply
    3
    • code-witchC Offline
      code-witchC Offline
      code-witch
      wrote last edited by
      #2

      Caching is always great to deal with when it comes to debugging. Always so helpful it is, serving out valid, stale requests that don't reflect what is actually happening on the ground.
      image.png

      1 Reply Last reply
      1
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups