Re: PHP Mirrors
| From: | Paul Dragoonis | Date: | Sun, 16 Oct 2011 21:27:50 +0000 |
| Subject: | Re: PHP Mirrors | ||
| References: | 1 2 3 4 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-12401@lists.php.net to get a copy of this message | ||
On Sun, Oct 16, 2011 at 3:57 PM, Hannes Magnusson <bjori@php.net> wrote:
> On Sun, Oct 16, 2011 at 19:58, Paul Dragoonis <dragoonis@gmail.com> wrote:
>> On Sun, Oct 16, 2011 at 1:45 PM, Hannes Magnusson <bjori@php.net> wrote:
>>> On Sun, Oct 16, 2011 at 19:42, Paul Dragoonis <dragoonis@gmail.com> wrote:
>>>> Hi guys,
>>>>
>>>> Do all of our mirrors have CURL enabled ?
>>>>
>>>> I'm pulling in these files for the new beta homepage:
>>>> -- http://pear.php.net/feeds/latest.rss
>>>> -- http://pecl.php.net/feeds/latest.rss
>>>>
>>>> and I want to cache them on the mirror for 24 hours and would prefer
>>>> to use something stable like CURL instead of a file_get_contents()
>>>> call.
>>>
>>> The mirrors in general don't have curl enabled no.
>>> Having a local cache file on the mirrors could also be an issue.
>>> Either it needs to be pre-generated, or let the browser fetch cache
>>> and render it?
>>
>> Can you elaborate (technically) on what you meant by "or let the
>> browser fetch cache and render it"
>
> Use JS to fetch the rss file, and then use an rss js reader to loop over it.
Yes, my first thought was cross-domain issues however i now realised
that it's just a different subdomain and we should be able to fetch it
just fine. Also off-loading the responsibility to the client-side
takes good load off our mirrors :-)
> -Hannes
>