Git Product home page Git Product logo

Comments (4)

ck-on avatar ck-on commented on August 28, 2024

Been running the trunk with the commits through March 18, 2013 on a very active server (php 5.4) with many different kinds of programs (including several different versions of wordpress) and have found it problem free so far when previous commits were not as stable.

Updated my little control panel to handle the different names/versions the opcache has been at over the past month.

My Zend Opcache wishlist includes:

  1.   statistic for how long has the cache been running (not just the last reset but also total uptime)
    
  2.   ability to delete individual files in the cache manually via the api
    
  3.   ability to change at least some settings on the fly via the api (ie. revalidate_freq )
    

from zendoptimizerplus.

dstogov avatar dstogov commented on August 28, 2024

7.0.1 was released

  1. "start_time" was added in addition to "last_restart_time"
  2. not implemented yet
  3. You may do it - ini_set("opcache.revalidate_freq", "0");

from zendoptimizerplus.

ck-on avatar ck-on commented on August 28, 2024

Thank you very much for adding start_time I appreciate it.

However ini_set("opcache.revalidate_freq", "0"); is useless, it does not change the master value, only the local value, which is for that one-time script load only in PHP, it is immediately reset to the master value in php.ini afterwards.

And I am pretty sure the opcache would ignore a local value change anyway once it's up and running.
A special api function would have to be created to force it to change on the fly and retain the change.

from zendoptimizerplus.

dstogov avatar dstogov commented on August 28, 2024

On Mon, Mar 25, 2013 at 2:52 PM, ck-on [email protected] wrote:

Thank you very much for adding start_time I appreciate it.

However ini_set("opcache.revalidate_freq", "0"); is useless, it does
not change the master value, only the local value, which is for that
one-time script load only in PHP, it is immediately reset to the master
value in php.ini afterwards.

Yes. And it's made on purpose.

And I am pretty sure the opcache would ignore a local value change anyway
once it's up and running, even without examining the code. A special api
function would have to be created to force it to change on the fly.

We are not planning to add such feature.
It's going to lead to race conditions and other tricky cases.

Thanks. Dmitry.

from zendoptimizerplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.