This modules is intended to provide roughly the same functionality as the apc.php that shipps with the documentation of the Alternative PHP Cache. The goal is to take a peek at the inner workings of APC and monitor things like cache usage, memory fragmentation etc.
This extension comes as a module as this is the easiest way to provide all the funcionality in one drop. However, it should be possible to rename and/or even relocate the main controller.
Please take note that this modules does not check for authentication or authorization in any way since I cannot make any assumptions of the auth mechanisms in other's applications. Please see to it that you grant permissions on this module only to the appropriate entities.
Also: This module is still a work-in-progress. So any kind of feedback is very welcome.
This extension can be used as a drop-in module. Just follow these steps:
application.modules directorymodules-stanza (create it if it doesn't exist yet) in your config and add the apcinfo module like this:'modules' => array( ..., 'apcinfo', ),
Total 5 comments
Personally I like that you have the default controller and redirect away from it.
This way you don't have multiple urls for the same thing.
'apcinfo/apc/index' and 'apcinfo/'
Well, thanks for your suggestion. The sole reason for the split of the CSS code has really been to leverage customized layouts (so you could e.g. have the index page split over three pages). For the 1.0 release, I plan to reorganize most of the code into standalone widgets and reloacatable actions, so everything can be integrated into existing dashboards nicely.
As for your work: Congratulations! Looks really nice ;) I'll see if I can aid by supplying a bootstrap theme in the next release.
Also to the author.. thanks for this ext. it's pretty awesome. I only have one real suggestion is that you put all of the css in one file so you're not publishing 3 files with very little css in them.
I'm using this bootstrap extension
I figured I'd share a portion of my code if anyone else is using this extension and bootstrap...
Make sure you include bootstrap in the top of your views/apc/index.php file or it won't display the css
change
To
you could also do something like this if you want it to change colors based on a percentage.
You would also want to get rid of fragmentation.css file and the line that includes the css file
in the _fragmentation.php file line 1
Here is a screen shot Note: the progress bar isn't right compared to the fragmentation % I altered it for the screen shot so you can see it in action.
Thanks for the suggestion, I'll definitely consider it. The sole purpose of the
DefaultControlleratm is to provide a hassle-free entry point for the module anyway.Nice extension! Very helpful in configuring and evaluating APC. :)
A small improvement suggestion: remove the DefaultController and simply configure ApcinfoModule->defaultController.
Leave a comment
Please login to leave your comment.