System Cache and Form Function

omidhz 16 Sep, 2017
I have a form in CFv6 that collects some data from user, runs a custom php then echo the result. The echo php code is part of the custom php code.
Everything is working fine. However, if I activate Joomla System Cache the form does not process the custom php function. How can I fix this problem.
Max_admin 29 Sep, 2017
Hi omidhz,

Set the from action url to :{url:} under the "Display section" settings.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
omidhz 30 Sep, 2017
Thank you Max, but did not make any difference. Still the form does not run the php code if I enable system cache.
GreyHead 01 Oct, 2017
Hi omidhz,

As I understand it the System Cache saves the page HTML and re-loads that when called so the form On Load action is by-passed and any custom code there will not be run. You need to set up the cache so that it ignores form pages if you want this to work correctly.

Bob
omidhz 01 Oct, 2017
GreyHead,
Thank you for your reply. My custom PHP code is in the SUBMIT section, not in ON LOAD. Will that make any difference? (see the screen shot).

Is there a feature in Joomla that I can exclude a page or a component from being cached? I couldn't fine one.

Thanks again for all your help.
Max_admin 02 Oct, 2017
Answer
1 Likes
Hi Omidhz,

Please try to set the "Action url" to {url:} in the "Display section".

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
omidhz 03 Oct, 2017
1 Likes
Max,
Thank you so much. That fixed the problem.

The only minor issue I encountered with this method was the fact that by adding {url:} after the submitting the form, it changed the URL of the page.
I am using Chronoform Plugin to publish this form and when the URL changes, it affected my modules that are showing on that page. However, this was not a big deal and I was able to fix that by using the Advanced Module Manager application.

Thanks again for your help.
This topic is locked and no more replies can be posted.