Mautic Community Forums

How to clear cache on Mautic 3 on shared server

Your software: Mautic 3.0.2
My PHP version is : 7.3.21
My MySQL/MariaDB version is (delete as applicable): MySQLlite 3.28.0

My problem is :
I have installed plugins but don’t appear on the extension screen, so I deteled all the content of the CACHE folder placed in mautic/var/cache ( I’m using mautic 3)

Steps I have tried to fix the problem :

When i deleted the whole content in the cache folder inside the VAR I practically got my mautic 3 broken and cant re-login, regardless of how many times i refresh my login page.

But as soon as i restored the the deleted CACHE folder inside the Cache folder my mautic instance becomes accessible.

I have read some solutions using sudo, the problem is that I’m running on a shared server so I don’t have access to command line .

Any suggestion?
Javier

Do you have ssh access, right?
Try this:
sudo -u [YOURUSERONTHESERVER] php /var/www/html/mautic/bin/console cache:clear

Make sure its the right path…

I run it under www-data, so mine would be:
sudo -u www-data php /var/www/html/mautic/bin/console cache:clear

On a shared server I run everything under joeyk, so its:
sudo -u joeyk php /var/www/html/mautic/bin/console cache:clear

The problem is, that sometimes you log in as root, and try to run everything as root. If you rebuild the cache as root, it will be not cool.

Good luck
J

1 Like

This works for us in m3 when we need to clear the cache when installing a new plugin…

php bin/console cache:clear --env=prod

Note that it can take a few minutes to run…

when i run cache:clear command i receive this error, is it normal?

/ Clearing the cache for the prod environment with debug
// false

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 495616 bytes) in /var/www/vhosts/xxxxxx/httpdocs/vendor/symfony/translation/Translator.php on line 318

In Translator.php line 318:

Error: Allowed m…

I have a Google Cloud deploy instance, is that that right path for me?

/var/www/html/mautic/var/cache

Short answer: yes.

Long answer:
If you want to admin your own VPS, you will need to look under the hood.
You can do that with getting familiar with basic ssh commands.


In this particular example pwd is your friend.
1 Like

Thanks Joey,

Will have a look this evening, I’m using it now, learning nano

Hi,

I am new to Mautic, I am just trying to install and set it up. I am facing some issue in the Plugin Section.

I am also using a Shared Server. I cleared the cache folder from /www/mautic/mautic31/var/cache folder and clicked the Install plugins but no result. I still face the same problem.

Mautic Community Edition - v3.1.0 - Plugins are not Visible in the Plugin menu.
Even in the installed mautic plugins, unable to find the Zoho CRM Plugin, from where can I download Zoho CRM Plugin.

Can you please let us know the steps to resolve this and also the link to download the Zoho CRM plugin ?

Mautic version - v3.1.0
PHP version - 7.2
Browser - Google Chrome / Firefox|