How can i tell if apc is running




















What is the correct command to install APC cache apt-get install php-apc or apt-get install php5-apc both of them works.

Improve this question. HopelessN00b Add a comment. Active Oldest Votes. How do I check APC cache is running? The best way is to browse apc. Improve this answer. Drew Khoury Drew Khoury 4, 8 8 gold badges 24 24 silver badges 28 28 bronze badges. Looks that it is working.

It shows: cached files: 2. But what is "hits"? Hits are when the requested page was found in the cache, misses are when it wasn't. Actually hits more accurately refers to "how many objects were already in the cache and were used" so it might be counting one page as multiple objects. You might be able to run a number of tests with some hello world examples and clearing the cache. Maybe the page you're hitting is including other pages or scripts and that is counting as multiple objects.

On top of that once the store is full requests to store information within the cache fail until there is once more sufficient space. Because of this it is recommended that you regularly purge or restart APC. Also recommended is to map a secondary application cache instance to any definition with the APC mapped. This ensures that if it does indeed full up that an alternative cache is available.

Its also worth noting for this those using Linux that there is usually a php5-apc package that can be installed very easily. If you have installed PHP under Linux through a package manager then this will be by far the easiest way to proceed.

Browse to your site and log in as an administrator. Moodle should detect that a new plugin has been added and will proceed to prompt you through an upgrade process to install it. The installation of this plugin is very minimal. Once installed you will need to need to create an APC cache store instance within the Moodle administration interfaces. Installing this plugin makes APC available to use within Moodle however it does not put it into use. The first thing you will need to do is create an APC cache store instance.

This is done through the Cache configuration interface. Once done you have an APC instance that is ready to be used. The next step is to map definitions to make use of the APC instance. Locate the known cache definitions table.

This table lists the caches being used within Moodle at the moment. For each cache you should be able to Edit mappings. Find a cache that you would like to map to the APC instance and click Edit mappings.

One the next screen proceed to select your APC instance as the primary cache and save changes. Back in the known cache definitions table you should now see your APC instance listed under the store mappings for the cache you had selected. You can proceed to map as many or as few cache definitions to the APC instance as you see fit.

For bug and feature requests please create issues at tracker. For help please visit the Hardware and performance forum. Zum Hauptinhalt. Suchen Schliessen Suchen. Sie sind als Gast angemeldet Login.

Maintained by Sam Hemelryk. This plugin allows the use of that APC data store as a Moodle cache store. In turn allowing you to use APC within Moodle. Latest release: 7 Jahre. Information and advice on using APC within Moodle APC provides a shared application cache that is usually very limited in size but provides excellent performance.

Collectives on Stack Overflow. Learn more. What is the correct way to check if APC is installed and working? Ask Question. Asked 9 years ago. Active 1 year, 4 months ago. Viewed 10k times. Improve this question. LuFFy 7, 10 10 gold badges 37 37 silver badges 58 58 bronze badges. Nicola Peluchetti Nicola Peluchetti Add a comment. Active Oldest Votes.



0コメント

  • 1000 / 1000