Welcome Guest, Not a member yet? Register   Sign In
SQL query executed 3 times (not wanted)
#5

[eluser]WanWizard[/eluser]
It's the downside of using 'lazy' rewrite rules.

Your rules basically say "rewrite everything that isn't a file or a directory to index.php".
Which means that every typo or missing asset will generate a second request of index.php.

Store your assets in a separate /assets folder, and exclude that from rewriting to avoid issues like this.


Messages In This Thread
SQL query executed 3 times (not wanted) - by El Forum - 03-06-2011, 11:32 PM
SQL query executed 3 times (not wanted) - by El Forum - 03-07-2011, 07:17 AM
SQL query executed 3 times (not wanted) - by El Forum - 03-07-2011, 09:07 AM
SQL query executed 3 times (not wanted) - by El Forum - 03-07-2011, 01:02 PM
SQL query executed 3 times (not wanted) - by El Forum - 03-07-2011, 01:25 PM
SQL query executed 3 times (not wanted) - by El Forum - 03-07-2011, 01:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB