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

  • Home
  • SEARCH
  • 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 and want to give people the same user experience
I'm starting a Wordpress Blog that will have adult content on it, so I'll
I have a friend who has code like this in his wordpress files: Blockquote
I have a wordpress blog. I made a custom page-template that allows users to
I have Wordpress in a subfolder in my site named blog. When I goto
I have Wordpress blog site and I wanted the users to enter their email
I have a wordpress blog inside the company where I write blogs. I want
I have set my wordpress blog's frontpage to show only three posts. On the
I have an atom feed on a wordpress blog here: http://blogs.legalview.info/auto-accidents/feed/atom When I download
I have a (Wordpress powered) website, and Google is indexing some of the sub-directories.

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.