Code Monkey home page Code Monkey logo

Comments (3)

amnuts avatar amnuts commented on September 28, 2024

Interesting question @p5ych0 and not one I've thought of before now. Off the top of my head, you could use the Amnuts\Opcache\Service class with an endpoint over the top of it which has an endpoint that returns the contents of the compileState method call. You'd then have to change the main GUI script so that instead of using $opcache = (new Service($options))->handle();` you'd go to each of your services, get the results and amalgamate them for output.

Of course, that has a bunch of issue to resolve such as what if there are different directives? How would you know what server the results came from? How would you invalidate anything in the cache (because you'd need to know which server)? ... and so on.

I think a lot of that could probably be resolved by also including an id or url of the server you've got those results from and then putting that into the results. Combine anything that is the same across all servers (like functions or possibly directives), but for the file list have a list built up of on which servers that file is found. Then you could work out something in the frontend to invalidate and filter based on the server values(which would require extra endpoints on the web services to do such things).

I think it'll require a bit of a rejig of things, but doesn't feel like it'd be too much or a re-write.

from opcache-gui.

p5ych0 avatar p5ych0 commented on September 28, 2024

I think it'll require a bit of a rejig of things, but doesn't feel like it'd be too much or a re-write.

I think drop-down selection of a single server to check would be sufficient

from opcache-gui.

amnuts avatar amnuts commented on September 28, 2024

Yeah, that would work, too. I was going for a more integrated approach, I guess, but it's your setup so do what best works for you. 😄

from opcache-gui.

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.