I'm using the following PHP code to grab the `og:image` property from a webpage:

```
$site_html = file_get_contents($some_url);
$html = new DOMDocument();
$html->loadHTML($site_html);
$meta_og_img = null;

foreach ($html->getElementsByTagName('meta') as $meta) {
    if ($meta->getAttribute('property') == 'og:image') { 
        $meta_og_img = $meta->getAttribute('content');
    }
}

```

I am expecting to need the `og:image` information on each page load, so would it be best (in terms of page load times, etc) to either (1) fetch the `og:image` from the external website every time the user loads the page or (2) fetch the `og:image` once and store it on my server?

Secondly, if I'm to store the `og:image` image on my server, how should I organize where it's located?

For example, if I need the `og:image` from the following webpage URL, how and where would I store the given `og:image` on my server:

```
Link: http://www.huffingtonpost.com/2014/10/20/hong-kong-negotiations-go_n_6016982.html?utm_hp_ref=canada&ir=Canada
og:image: http://i.huffpost.com/gen/2187192/thumbs/o-UMBRELLA-COPS-facebook.jpg

```

Would I store the URL in a database table and give it a unique ID, such that the server directory to the `og:image` would then be something like:

```
/var/www/html/og_images/<ID>/image.jpg

```

Thanks.