Jump to content

Contact Form doen't send email with Server Cache ON!


Recommended Posts

Hi,

I have a problem with the standard Contact Form of Prestashop 1.7.8.8: If I enable the Server Cache, the module doesn't send any email and the page refresh without any error message. What I can check to solve this problem?

Here the server detail:

Server: Linux #62~20.04.1-Ubuntu SMP Tue Nov 22 21:24:20 UTC 2022 x86_64
Version softwarer: Apache
Versione MySQL: 8.0.28-0ubuntu0.20.04.3
Motore MySQL: InnoDB
Driver MySQL: DbPDO
Version PHP: 7.4.33
Memory Limit: 512M

Thank you for help

Luca

Link to comment
Share on other sites

  • 2 years later...

Hi,

This happens when the cache blocks the form processing. Try this:

  • Test without cache: Go to Advanced Parameters > Performance > set "Use cache" to No. Test the form.
  • If it works: Switch cache mechanism to "Memcached" or "Redis" instead of FileSystem.
  • Still issues, then check email logs in Advanced Parameters > E-mail and enable debug mode in defines.inc.php.

Regards.

Link to comment
Share on other sites

5 hours ago, skinnybloke said:

Will this have a detrimental effect on site performance? I also run the site through Cloudflare for caching.

To prevent Cloudflare from caching requests to send emails from the contact form, you need to configure Page Rules in Cloudflare and specify Cache Level: Bypass for the request URL.

Then Cloudflare will not cache requests from the contact form.

 

Знімок екрана 2025-11-02 173743.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...