Support Forum

Optimizing SimplePress Under CloudFlare

1
FidoSysop
Clearwater Florida
Member
VIP
May 26, 2016 - 3:38 pm

Having ran WordPress and SimplePress under CloudFlare successfully for several years i put this guide together offering tips and tricks.

SimplePress is fully compatible with WordPress on standard (old school hosting installations.) However to get the most out of SimplePress here are my best tips for running it under CloudFlare.

It’s important to understand that Steve and Andy have written this plugins code to integrate with WordPress. Numerous hooks and database calls are made to WordPress on top of the standard operating calls. This is why we should tweak our CloudFlare settings to get the most out of SimplePress.

  • CloudFlare Rocket Loader adds a ton of speed by combining as many scripts as possible in a single request. It is GREAT! But i recommend disabling Rocket Loader when in SimplePress admin.
  • Caching combining scripts is provided by cf. I recommend disabling CSS/JS Combined Caching in sp options > global settings. Double caching can and will cause problems.
  • Disabling Rocket Loader on the forum page is beneficial for your users. In your cf dashboard click on page rules. Here we want to define a rule to disable Rocket Loader on your sp forum page. Enter (full path to your WordPress forum page followed by /*. Select disable RocketLoader from the options list, then save the rule.
  • Further info on creating custom CloudFlare page rules, including Google AMP toggles is here.
Mr Papa
Simi Valley, CA
Member
Free Members
May 26, 2016 - 10:30 pm

Thanks Doc!

jim
Here and Now
Member
Platinum Members
Dec 18, 2017 - 9:33 pm

Hey @fidosysop-2 thanks for the Cloudlfare recommendations. I find something contradictory, however...

 

Question 1:

You recommend: enable Rocket Loader, especially for the script combining/caching. Great.

You suggest: disable SP combined caching. OK.

But then you suggest: disable Rocket Loader on /forum pages. Uhh...

If we disable Rocket Loader on Forum pages and combined caching is disabled in SP admin, then no CSS or JS is getting minimized and cached. Could you please explain the reasoning here?

 

Question 2:

Also, when you say "disable Rocket Loader when in SimplePress admin" do you mean literally to turn it off from the CF dashboard whenever visiting the SP admin? Or writing a page rule?

If the latter would that rule look something like this?
...domain.tld/wp-admin/admin.php?page=simple-press/admin/*

Thanks again!

FidoSysop
Clearwater Florida
Member
VIP
Dec 20, 2017 - 5:10 pm

Hi Jim, Since updating my server to PHP 7-0 I no longer need to enable rocket-loader for my domains. Causes more problems than it's worth. I do enable cf auto minify CSS JS and HTML. 

jim
Here and Now
Member
Platinum Members
Dec 21, 2017 - 9:08 pm

FidoSysop said
I no longer need to enable rocket-loader...I do enable cf auto minify CSS JS and HTML.

And you still disable css/js cache in SimplePress???

1