Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
tips-topic
Optimizing SimplePress Under CloudFlare
Avatar
FidoSysop
Clearwater Florida
Member

VIP
Offline
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.
  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
May 26, 2016 - 10:30 pm

Thanks Doc!

Avatar
jim
Here and Now
Member
Pro Subscribers
Offline
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!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
FidoSysop
Clearwater Florida
Member

VIP
Offline
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. 

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
jim
Here and Now
Member
Pro Subscribers
Offline
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???

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626