I was wondering how we can integrate Moodle with CDN, is there any specific places in the code we have to change in order to make moodle store its uploaded docuements to the CDN directly?
I tried to play around file API by I didn't manage to make it work as required.
Please give me assistance on that.
Mohammad Abu Musa
Please don't post questions in multiple forums as it just dilutes any answer you might get.
I suspect that most people here will not be familiar with Content Delivery Networks (assuming that's what you mean). I certainly only have a very superficial understanding. It might help to explain in a bit more depth what you are hoping to achieve.
I can't help thinking that it will just boil down to developing a repository plugin for whichever CDN you are using (there seem to be loads of them).
I am terribly sorry for that, but I was confused where to
ask the question so I duplicated the entry.
I figured out most the problem now, Thanks and apologizes again.
Hi Muhammad, Any news about solution for that?
I assume the OP wants to use a CDN to deliver static files like images/css/js via a CDN. This will allow those files to be delivered to the browser via edge cache servers, files uploaded to the CDN will be distributed to a global network of servers co-located with ISP's etc.
There are a few advantages, one being that these files are then usually served up a lot faster because of where they are served from, also some heat is taken off the users own web server. Sometimes if files stored on a CDN are accessed via a separate domain then that could also be cookie-less and the browser may be able to download more files in parallel, speeding up the overall page load even more.
In terms of how one would actually use a CDN in this way with Moodle, most CDN's would require some changes to be made to the code-base.
However, I've been using a service called CloudFlare recently which attempts to cache files by hosting the DNS zone for the site, making the set up a lot more straight forward.
CloudFlare automates most of the process and gives simple instructions for the bits that need to be set up manually. Once your DNS host is pointed to CloudFlare it will act as a proxy, serving static files from its own edge cache.
Because of the way CloudFlare proxies the requests to your server it also has many security features that can also help to improve site performance and reduce the risk of being hit by web spammers and botnets.
So yeah, I recommend CloudFlare!
Where can we learn about your experience using CloudFlare with Moodle? Of interest are potential issues with cacheing of dynamic content.
Also, we have been considering whether to partition content between static and dynamic, delivering 'bulky' static content via CDN and the dynamic content directly. However, then we could end up with material in different domains and have concerns about SCORM packages that combine both, but whose internal manifest and file addressing as determined by Moodle (2.4) might not cope with domain boundaries.
I am managing 40 Moodle sites at the moment and using setup to engage students from schools on a Moodle hub that connected to all the school Moodle Sites.
To make the Moodle Hub more effective and improving the Moodle performance, I would like to start using AWS CDN.
Did you finally manage to integrate Moodle with CDN? If so, could you please let us know how you did that.
P.S. Moved this discussion from the "Hardware and Performance" forum.
I was trying to find out how I can integrate Moodle with CDN. For example if I have to store course content, media etc in CDN, where should I be making changes? Could you please point me to some links where CDN support with Moodle is discussed? Thanks