search

Home  >  Q&A  >  body text

apache - symfony2.8 In the local development environment, the modified code takes effect very slowly.

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 tried app/console server:run
open the web page at localhost: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)

漂亮男人漂亮男人2794 days ago427

reply all(3)I'll reply

  • 漂亮男人

    漂亮男人2017-05-16 16:45:47

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

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 16:45:47

    There is no one there. . .

    reply
    0
  • ringa_lee

    ringa_lee2017-05-16 16:45:47

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

    reply
    0
  • Cancelreply