• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Note on using the new opcache

#2
(06-26-2019, 03:08 AM)InsiteFX Wrote: If you are using the new opcache in php 7 etc;

You will need to create a file to clear the cache or your development updates will not
work. Everything will be pulled from the cache so when making changes you will need
to run the below file first.

flush_opcache.php

PHP Code:
<?php

opcache_reset
(); 

Place it in the root along with index.php

I think (but have not confirmed) that a couple of php.ini settings will accomplish the same thing.

Code:
opcache.validate_timestamps=1
opcache.revalidate_freq=0

Documentation
Reply


Messages In This Thread
Note on using the new opcache - by InsiteFX - 06-26-2019, 03:08 AM
RE: Note on using the new opcache - by dave friend - 06-26-2019, 09:24 AM
RE: Note on using the new opcache - by InsiteFX - 06-27-2019, 07:47 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.