apache - symfony2.8 In the local development environment, the modified code takes effect very slowly.
漂亮男人
漂亮男人 2017-05-16 16:43:47
0
3
342

1. After modifying the code in the development environment and refreshing the page, it will take more than ten seconds for the changes to appear. Within ten seconds, the page will still stop at the result before the code modification
(ps: the app has been deleted /cache directory, still invalid) Environment: php5.6, apache2.4 local virtual host

2. Later I triedapp/console server:run
open the web page atlocalhost:8000/app_dev.php, modified the code, and the refresh took effect immediately.

3.question: Why is it useless to delete the cache directory of the virtual host... (Now you can only use this command line to start the program for coding. What will happen if you try to transfer it to the server later)

漂亮男人
漂亮男人

reply all (3)
漂亮男人

Check whether php has enabled apc opcache and other caches, and also check whether the virtual machine has port mapping

    给我你的怀抱

    There is no one there. . .

      左手右手慢动作

      It should be caused by the browser’s cache. It is best to access it in the incognito mode of Chrome or Firefox

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!