11 October 2016
Laravel by default keeps log of SQL Queries that should be disabled on a production website. This can be done by adding DB::disableQueryLog(); to /bootstrap/start.php like so:
// disable query log for productions site
if($env == 'production')
Next it's a good idea to update and optimise your start up scripts by running commands below
php artisan clear-compiled
php artisan optimize
If you use Laravel 5 you can also run
php artisan config:cache
php artisan route:cach
Other things you should check
18 September 2016
This tutorial shows how to create and install a security certificate on an apache server.
17 January 2016
Recently I had a bit of a challenge getting my policy right to enable a single bucket access on amazon s3. After few trial and errors I managed to get it right and decided to post my solution here as I did not found a single resource that had all the answers.
17 May 2015
Adding a module position in template override can be very helpful. For example you may want to add a module position within a K2 template override or even in a content's article override.
07 May 2015
Optimising a mysql database is one of important steps in improving your website performace and the first step is to identify slow queries. Luckely mysql has an option to log slow queries, which we can then use to identify queires that causing a problem.
13 June 2015
Live sql queries can be viewed using the general query log and tail command in Linux
13 June 2014
Disabling the right click menu can be useful when using things like wysiwyg edotors, but some websites use this feature to disable right click menu on the entire page to prevent users accessing menus like view code or download images. But as a developer being able to access the right click menu is handy. Good news that ability to block right click menu by scripts can be disabled in 6 easy steps.
08 June 2015
Have you ever thought how many concurrent users your website or the server can sustain before running out of resources? Load testing can be very useful in getting ready or answering this question and put you in a proactive position for resolving potential issues.
26 March 2014
It has been a while since JoomlaWorks releacded a new version of K2, but finaly the K2 version 2.6.8 is here and so is the new patch! The new K2 multi categories patch includes the following changes: