558 Posts in 3589 Topics by 244 members
|Go to End|
25 November 2010 at 1:04pm Last edited: 25 November 2010 1:10pm
Let's combine all speeding up tricks for silverstripe and websites generaly.
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,
analytics js-scripts sometimes is slow so server side analytics,
minifing of HTML, JS, CSS,
caching of everything that isn't changed,
subdomain for static content and ngix running on it (CDN and dedicated IP will be better),
removing dev servers directive,
combining css and js as much as possible
16 December 2010 at 10:36pm
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?
6 March 2013 at 3:04pm
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);
7 August 2013 at 9:55am
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.
29 May 2014 at 8:17pm
nice speeding up tricks but I agree with Ingo you should explain it a little more.
3 June 2014 at 6:39am
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.
|Go to Top|