Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4025100
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:48:15+00:00 2026-05-20T10:48:15+00:00

Am have no clue when it coming to Caching but I was running this

  • 0

Am have no clue when it coming to Caching but I was running this file

<?php 
header('Location: http://stats.vbirc.com/remote.php?func=numinchan&param=%23animelon');
?>
<meta http-equiv="refresh" content="600">

My server got banned the firewall keep’s blocking me automatically. I use this about code in a iframe for a custom image (it show’s the user’s in irc)

I want to be able to cache this so it’s only hitting there servers once not everytime someone reloads a page etc…

Ok this some more detail

<a href="animelon.com/ezirc/" class="irctitle">#animelon irc.vbirc.org</a>
<br />Click the link above to join the official animelon chat room or join with you'er 
<a href="irc://irc.vbirc.org:6667/animelon">own client</a>. 
<span class="irc_usersonline"><strong><iframe marginwidth="0" marginheight="0" width="22" height="16" scrolling="no" frameborder=0 src="irc_online.php">
</iframe>
</strong> people online</span>
</p>
</div>

animelon.com/irc_online.php

this is the name of the code I added at the start
this is where I want the cached info to show

img59.imageshack.us/img59/7931/ircz.jpg

(can’t use image’s so have to link to it)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:48:16+00:00Added an answer on May 20, 2026 at 10:48 am

    The idea of caching is pretty simple. An abstract example:

    if((time() - $time_previously_fetched) > $expire_time){
      $contents = file_get_contents($url); //Retrieve from original source
      saveToDatabase($contents); //Cache it
      $time_previously_fetched = time(); //Save the time to check against for in future
    }else{
      $contents = getFromDatabase(); //Retrieve local copy
    }
    
    echo $contents;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have no clue of where to start on this. I've never done any
I have no clue how to validate this string. I am simply supplying an
I am new to Objective-C and I have no clue why this code is
I have no clue how to phrase this question in a search engine. I'm
I have a strange result coming from some big math & have no clue
I have two sites running from the same instance of Sitecore: www.domainA.org www.domainB.com Google
I'm building an ogre3d tutorial based on this setup http://www.ogre3d.org/wiki/index.php/SettingUpAnApplication#XCode I've followed all steps
I have a staging Rails site up that's running on MySQL 5.0.32-Debian. On this
I have no clue how i can get an existing object structure based on
I have no clue what an anonymous type is in C# nor how it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.