MAMP time between seeing live changes

后端 未结 1 1390
太阳男子
太阳男子 2020-12-07 16:17

I\'m using MAMP server and wondering why changes I make to the PHP files are not instantaneously displayed when I page refresh (in browser). Is there a way to set this up? T

相关标签:
1条回答
  • 2020-12-07 16:26

    The solution is uncommenting lines in the php.ini file which can be found in /MAMP Directory/bin/php/php5.5.3/conf/php.ini

    Comment out Opcache:

    [OPcache]
    ;zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/opcache.so"
    ;  opcache.memory_consumption=128
    ;  opcache.interned_strings_buffer=8
    ;  opcache.max_accelerated_files=4000
    ;  opcache.revalidate_freq=60
    ;  opcache.fast_shutdown=1
    ;  opcache.enable_cli=1
    

    Documentation (yes it started in 5.5):

    http://www.php.net/manual/en/intro.opcache.php

    0 讨论(0)
提交回复
热议问题