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 4248552
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:16:23+00:00 2026-05-21T04:16:23+00:00

I have a wordpress blog (this does not really matter i think). I have

  • 0
  1. I have a wordpress blog (this does not really matter i think).

  2. I have an xml file

  3. Doing a cron job every 5 minutes, I import the xml data inside a table

  4. On my wordpress blog I pull data from that table and display it

5. Problem is that i have about 20 images to display from 20 urls – this is slowing my site down

6. Is there a way to somehow cache the images and automatically refresh them every 5 minutes when the cron job acts?

  • 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-21T04:16:24+00:00Added an answer on May 21, 2026 at 4:16 am

    would really need to see the structure of the xml, if you dont have curl you could use the more simpler file_get_contents(); / file_put_contents();

    <?php 
    //in your loop after you found or matched location and filename.
    $img = file_get_contents('http://bla.com/imageLocation.jpg');
    $newImageName='would_need_to_see_xml.jpg';
    $newImagePath='./image_folder/';
    file_put_contents($newImagePath.$newImageName,$img);
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WordPress blog with numerous URL's I wish to replace from this:
Does anyone know of any blog/CMS software (similar to Wordpress, but doesn't have to
i have made a simple php contact form following this tutorial: http://www.catswhocode.com/blog/how-to-create-a-built-in-contact-form-for-your-wordpress-theme The big
i have wordpress blog in my custom built website, i am displaying some posts
I have a WordPress blog and I'm trying to make that when a user
I have a (wordpress) blog where after commenting the users are redirected back to
I have a wordpress blog www.freelancing4arab.com, I want to change the theme font, I
I have one wordpress blog whose home page is showing a list of 10
I have a WordPress blog. I use a wide variety of fonts. Now I
I have a blog (wordpress) and a facebook fan-page for my blog (with more

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.