Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Hosting Requirements

What you need to consider when choosing a hosting provider and plan.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Hi-Load Systems


Reply

6 Posts   2459 Views

Avatar
Tonyair

25 November 2010 at 1:04pm (Last edited: 25 November 2010 1:10pm), Community Member, 81 Posts

Let's combine all speeding up tricks for silverstripe and websites generaly.

Mine:
memcached for sessions,
client side swf image resizing,
turned off mod_rewrite (just set 404 page to sapphire/main.php it's faster),
imagemagic server side image resizing,
wget retriving remote data,
xcache,
analytics js-scripts sometimes is slow so server side analytics,
minifing of HTML, JS, CSS,
caching of everything that isn't changed,
expire headers,
subdomain for static content and ngix running on it (CDN and dedicated IP will be better),
gzip compression,
removing dev servers directive,
combining css and js as much as possible

Avatar
Ingo

16 December 2010 at 10:36pm Forum Moderator, 801 Posts

Very interesting stuff Tony! Would you mind to elaborate a bit on what customizations you had to do in SilverStripe to get these various tuning aspects going? Specifically:

> memcached for sessions,
Transparent throug a PHP module, or customized in SS?

> client side swf image resizing,
First I'm hearing of it, do you have benchmarks? :)

> caching of everything that isn't changed,
> expire headers,
Are you caching SS generated HTML responses? With Last-Modified headers, or just generic Expires header?

> subdomain for static content and ngix running on it (CDN and dedicated IP will be better),
Are you referencing all static content with absolute URLs, or did you bend SS to rewrite *.gif|png|jpg links somehow?

Avatar
shizny8

6 March 2013 at 3:04pm Community Member, 3 Posts

Hi, I'm having issues with setting up memcached in silverstripe. What other config file did you update and do you know how to get silverstripe to use memcached for the template cacheing... I'm still getting a lot of files written to silverstripe-cache directory?

my _config has

SS_Cache::add_backend('primary_memcached', 'Memcached', array('host' => 'localhost', 'port' => 11211, 'persistent' => true, 'weight' => 1, 'timeout' => 5, 'retry_interval' => 15, 'status' => true, 'failure_callback' => '' ) );

SS_Cache::pick_backend('primary_memcached', 'any', 10);
SS_Cache::pick_backend('default', 'aggregate', 20);

Avatar
obj63mc

7 August 2013 at 9:55am Community Member, 24 Posts

Hi All,

I am having the same issue with Memcached any help would be appreciated.

I am also trying to cache some things manually as well as described in willr's post at http://willrossi.tumblr.com/post/1187670605/caching-memory-intensive-tasks-in-silverstripe

in the memcache but it doesn't seem to be storing. When I run a call back to load something from the cache it is always returning false and then running the code anyway.

I am using 3.0x right now for my production site.

Thanks all.

Avatar
kevinstripe

29 May 2014 at 8:17pm Community Member, 10 Posts

nice speeding up tricks but I agree with Ingo you should explain it a little more.

Avatar
Bonner

3 June 2014 at 6:39am Community Member, 19 Posts

I compile the application into a PHP extension, and then install the extension on all application servers which are then load balanced. Doing so allows my sports website to serve a few million hits a day.