Jump to content
Mathew Nwaneri

How to flush Memcached using cronjob

Recommended Posts



I'm a merchant with very little knowledge on php commands.

I have memcahed installed on my server and it works good, problem is the allocated memory of 16mb gets consumed very fast above 100% usage.

I contacted hosting and the only provided blogs of how to create command line and cronjob to flush Memcached.

Unfortunately not knowing anything about commands, I guessed I might be getting a solution from somebody here.

Can anyone teach me how to go about commands? or better still, can somebody provide me with the cron url if thats what is only needed.

In my advanced parameters the memcache is set up like this:

Id       IP address                                                                              Port      weight 

2        /opt/memcached/run/lords/memcached-1.sock            0             1

Server Information:

Hosting Package: default

cPanel Version: 78.0 (build 41)

Apache Version: 2.4.41

PHP Version: 7.2.23

MySQL Version: 10.2.28-MariaDB

Architecture: x86_64

Operating System: linux

Path to Sendmail: /usr/sbin/sendmail

Path to Perl: /usr/bin/perl

Perl Version: 5.16.3

Kernel Version: 2.6.32-042stab128.2


Prestashop server information: Linux #1 SMP Thu Mar 22 10:58:36 MSK 2018 x86_64

Server Software Version: Apache

PHP Version: 7.2.24

Limit memory: 4G

Maximum execution time: 300

Size Max. Files to upload: 256M


I will be mighty grateful to anyone that can help.


Screen Shot 2019-11-06 at 07.50.18.png

Screen Shot 2019-11-06 at 07.36.00.png

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More