Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Cloudflare,caching and Increasing Page load speed
onesoftindiana
New
I had cloudflare installed at my domain , now I have installed Vanilla 2.1.3 at a sub-directory i.e. website.com/Forum
Is cloudflare working on my vanilla forum too ? What are the best options for increasing page load speed on vanilla forums like using any cache plugin, cdn etc.
I placed the Debug code and this is what I see at the bottom of the discussion page
Debug Trace
Info Need to re-index theme cache
Info Need to re-index plugin cache
Info CommentModel->PageWhere()
Info
Comment.Page.30.3.1: false
Tagged:
0
Comments
Install
memcached
(notmemcache
- they are, confusingly, 2 separate things). That will make a world of difference. An opcache layer like APC also helps a ton. Finally, an HTTP accelerator like Varnish will make guest traffic basically irrelevant.I'm not familiar with Cloud Flare's offering; it's possible they make Varnish redundant, no idea.
You can ignore that debug message.
Yes if you are using cloud flare using varnish would be redundant
Unlike a traditional CDN, with clouflare you point you IP to couldflare, and static content is forwarded, and served nearer to the requester.
grep is your friend.
If you want to use cloud flare you may want to use something like this
http://vanillaforums.org/addon/cloudflaresupport-plugin
to forward the IP, for moderation etc.
You may need to update the CloudFlare IP ranges to reflect https://www.cloudflare.com/ips
You shoudl add them to the
$CloudflareSourceIPs
property in the plugin file.Maybe @Tim will update it for you if you ask nicely.
grep is your friend.
Not if you are on a major cloud based host that already has good distribution, then using cloudflare probably isn't worth it. However you would probably know that if you are.
grep is your friend.
https://github.com/vanilla/addons/tree/master/plugins/CloudflareSupport
Vanilla Forums COO [GitHub, Twitter, About.me]
I'll accept a PR that updates the IP list.
Vanilla Forums COO [GitHub, Twitter, About.me]
I'll bite.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight the delight of fly-fisherman throughout the world. (*)
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thanks @hgtonight! Please review the feedback
Vanilla Forums COO [GitHub, Twitter, About.me]
Code updated and new plugin version released.
Vanilla Forums COO [GitHub, Twitter, About.me]
@hgtonight you are fast as lightning.
grep is your friend.
In case you need it: cloudflaresupport.plugin.php (with updated IP list and auto-update mechanism)
I modified the plugin 2 years ago to make it compatible with Vanilla 2.0.x. The updated version also retrieves the IP addresses from CloudFlare automatically. One feature that I didn't manage to implement was retrieving the IP list only on Cron execution (or periodically, anyway). At the moment it's retrieved every time, and it's not really optimal.
My shop | About Me
I contemplated doing that, but decided against it. Could just store it in cache and expire it after 24 hours. That would cut down plenty.
You would just have to use a cache to see the benefit.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Yes, that's what I was thinking as well. Not too complicated to do either.
My shop | About Me