How to delete / clear / flush eAccelerator cache

eAccelerator is a popular PHP accelerator and optimizer. It improves and increases the performance of PHP scripts by caching them. eAccelerator can typically reduces server load and increases the speed of your PHP code by 1-10 times.

By default eAccelerator saves cache in /var/cache/eaccelerator directory. But eAccelerator cache directory can be different on some server. Like it may can be /tmp/eaccelerator

Sometimes, you may need to clear eAccelerator cache to free up some space in /var or /tmp directory.

Here is how you can delete / clear / flush eAccelerator cache.
Login in server as root via SSH, and execute following command.

If eAccelerator cache directory is /tmp/eaccelerator, use below command to delete all cache older than 24 hours.

tmpwatch --mtime --all 24 /tmp/eaccelerator

If eAccelerator cache directory is /var/cache/eaccelerator, use below command to delete all cache older than 24 hours.

tmpwatch --mtime --all 24 /var/cache/eaccelerator

[dedicated_hosting]

Our Top Rated Host

Related Posts