The MCacheMinObjectSize directive sets the minimum size in bytes of a document for it to be considered cacheable. A document must be larger than the minimum size in bytes for it to be considered for storage in the cache.
This tutorial will explain how to modify the value of MCacheMinObjectSize directive for Apache with VPSrobots and with command prompt.
Before you begin
- This guide assumes you have installed VPSrobots client and connected to your server with VPSrobots client.
- This guide assumes you have configured PuTTY and connected to your server with PuTTY.
- The following command prompts are running on Debian 7 with Apache 2.2.
How to modify MCacheMinObjectSize directive for Apache with VPSrobots?
- After you’ve connected to server, click the connected server to load the server data.
- Click Breadcrumb Setting tab to open it and click More button below Apache section.
- Enter directive name in the search box and click Edit button at the result which is highlighted in blue, modify the value then click OK button. Lastly, click Apply button to make the change effective.
How to modify MCacheMinObjectSize directive for Apache on Linux with command prompt?
- Once you connected to server with PuTTY, enable mem_cache_module and restart Apache with the following command prompt:
a2enmod mem_cache service apache2 restart
- Open the mem_cache.conf file in mods-available directory with the following command prompt and modify the value of MCacheMinObjectSize directive, and save the change then exit from the file:
- You need to create a soft link for mem_cache.conf file by running the following command line:
ln -s /etc/apache2/mods-available/mem_cache.conf /etc/apache2/mods-enabled/mem_cache.conf
- In order to make the new configuration take effect, please restart Apache:
service apache2 restart
In this article, we covered how to modify MCacheMinObjectSize directive on Linux with VPSrobots and with command prompt. To learn more other Apache directives, please take a look at the following guide: