How To Speed Up Your Osclass Classifieds Website

If you are using shared hosting of any kind, there are a couple of things you can do in less than 5 minutes, without any cost, that will make your Osclass faster and probably safer.

  1. Enable PHP 5.6+ (or 5.5) from your Control Panel. It is surprising to see in 2015  that most of Osclass websites still use PHP 5.3 (released in 2009). Go to your Cpanel (Control Panel) and make PHP 5.6 as DEFAULT and SAVE. That will make your Osclass faster and more secure. You will also have much better memory management. Just make sure you also enable the modules you need to use with 5.6 (you can make a note from your PHP 5.3 module page).

2. After you have switched to PHP 5.6+ (or 5.5) you can enable Opcache module from your Control Panel (Select PHP Version). With Opcache enabled my hosting plan never passes 35% cpu use. Also Opcache significantly expands the amount of data/requests I can handle per second without the server even breaking a sweat.

Set php 5_6 CpanelIf you are not using Shared Hosting, you can still do both of the above, if you know your way around your server or your hosting plan. If you don’t know how to do it, it will be beyond the scope of this post to fully explain and you better open a ticket with your support for help.

Note 1: OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. This extension is bundled with PHP 5.5.0 and later. By default it uses 64 mb for caching, so make sure your hosting provider allows 256 mb for php. If you have 128 mb then do not enable Opcache.

Note 2: If you host more than one websites in the SAME plan, it is not advised to enable Opcache for many reasons that it would be hard to explain here. It may slow down your websites instead of speeding them up.

Note 3: When PHP 7 available by the end of 2015 and becomes widely available, everybody will want to switch, because (among other things) it is 30% – 70% times faster (for Osclass and from a brief test i did using PHP 7 RC3).