Skip to content

Instantly share code, notes, and snippets.

@ideadude
Created January 24, 2018 17:36
Show Gist options
  • Save ideadude/fea2ee55b1b78ea4b420b31fecafcb0f to your computer and use it in GitHub Desktop.
Save ideadude/fea2ee55b1b78ea4b420b31fecafcb0f to your computer and use it in GitHub Desktop.

Revisions

  1. ideadude created this gist Jan 24, 2018.
    12 changes: 12 additions & 0 deletions cache_test.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    <?php
    $now = date('Y-m-d H:i:s', time())
    ?>
    <html><head><title>Cache Test (<?php echo $now;?>)</title></head>
    <body>
    <h1>Cache Test</h1>
    <p><?php echo 'Time right now: <strong>' . $now . '</strong>'; ?>
    </p>
    <p>If this doesn't refresh on page load, then something is caching this page.</p>
    <p>You can try adding ?t=arandomnumberorstring to the end of the URL to break the cache. You'll see the current time.</p>
    </body>
    </html>