Weaving Dream Dedecms Local background running slow
Do not know when to start, weaving dream dedecms in the local PHP environment for testing, the background of the operation will be very slow, often after a long time did not respond. After a long run, there will be "\include\userlogin.class.php on the line 21" error message, began to think that the PHP environment, and later changed a few are the same. Now no cattle network to share the solution, hoping to help all meet the same problem of friends.
The problem is caused by the code behind a piece of security testing in the background of the weaving dream. Find the Dream Dedecms Management folder, this according to their own website to judge, the default is the Dede directory, find the directory Templets folder inside the Index_ body.htm file, use professional editor such as Dreamweaver to open, find the following content, the code to comment or delete:
| 1 |
$(function(){$.get("index_testenv.php",function(data){if(data !== ‘‘){$("#__testEvn").html(data);}})}) |
This code is originally in a section of the JS code, after the comment or delete, refresh the background, you will find that the speed has been lifted up. No cattle nets have been tested, and solve the dream Dedecms local background running very slow problem, I hope to be helpful to everyone.
Http://www.noniu.com/jiaocheng/dedecms-houtai-man.html
Dede Optimized Open speed