Skip Navigation

[Resolved] Need to know settings for optimising my site using WP rocket

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to know how best to optimize my site with WP Rocket.

Solution: We recommend you exclude from minification all JavaScript files in the Forms plugin. The Forms plugin directory is /wp-content/plugins/cred-frontend-editor/

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 6 replies, has 2 voices.

Last updated by pramodk-2 3 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#2026657

Hi Team,

Page load time of my site is more and would need to optimise it.

In order to optimize using WP ROCKET plugin, please let me know whether there are any settings needed.

Is there any file that needs excluded from optimising.

Please suggest me.

Thanks.

#2026715

Hello, the most recent version of Toolset plugins includes several optimization updates that consolidate assets required by Toolset plugins. Please be sure you are using the latest versions of all Toolset plugins. If you have not been prompted to update recently, go to Plugins > Add new, then click the Commercial tab. Scroll down to the Toolset Installer and click "Check for updates" to get the latest plugin versions installed automatically.

Once you have updated, we recommend you exclude optimization of scripts from the cred-frontend-editor plugin directory if your site uses Toolset Forms:
/wp-content/plugins/cred-frontend-editor/*.*

Beyond that, if the site is taking a long time to load, we can use a plugin like Query Monitor to analyze the queries used to produce the page and see if any individual query from Toolset is running over 0.05 seconds, which is our standard for query speed.

#2027165

Hi, Thanks for updating me.

Could you please elaborate the below paragraph?

Once you have updated, we recommend you exclude optimization of scripts from the cred-frontend-editor plugin directory if your site uses Toolset Forms: /wp-content/plugins/cred-frontend-editor/*.*

Yes, I'm using toolset forms and this is most important for me in my site.

I will update to Toolset 1.5 and see in case if I still want to install WP Rocket.

In case if I want to still use WP Rocket, are you saying that I would need to exclude few files?

If yes, please let me know on how do I need to do it...

Thanks.

#2027717

In case if I want to still use WP Rocket, are you saying that I would need to exclude few files?
Yes, that is correct. If the Toolset Forms plugin is active on your site, you should exclude its JavaScript files from WP Rocket's optimization, minification, and concatenation processes. In other words, you should exclude all files that end with .js that exist inside the Toolset Forms plugin directory and its subdirectories. The Toolset Forms plugin directory is located here: hidden link

You should exclude all .js files loaded from the Forms plugin directory and any of its subdirectories. I found these WP Rocket articles with information about excluding 3rd-party JavaScript files from minification/concatenation/optimization:
https://docs.wp-rocket.me/article/1351-javascript-minify-combine
https://docs.wp-rocket.me/article/39-excluding-external-js-from-concatenation

If you need help determining the best syntax for wildcards, etc., I suggest you ask the WP Rocket support team for help since I am not really an expert in their software.

Let me know if you need any additional information from me to facilitate a discussion with the WP Rocket support team. I'll be glad to give you any specific information you need.

#2028603

Hi, Thanks for the update.

If the use the below, it should be file I believe. Please let me know if this correct.

/wp-content/plugins/cred-frontend-editor/(.*).js

Also, is there any URL should I need to exclude like Log-In and Log-Out pages.

Thanks.

#2028687

If the use the below, it should be file I believe. Please let me know if this correct.
/wp-content/plugins/cred-frontend-editor/(.*).js

The directory looks accurate for the Forms plugin. If you have questions about the (*.).js syntax, as I was saying, you should submit those questions to the WP Rocket support team since the wildcard syntax is specific for their plugin. I do not have information about the syntax required to exclude specific files or to use wildcards in a generic way.

Also, is there any URL should I need to exclude like Log-In and Log-Out pages.
I'm not aware that you need to do anything special on log-in or log-out URLs. The default WordPress login and logout URLs include /wp-admin and /wp-login.php, so if you have any problems you might ask the WP Rocket team for assistance excluding those URLs from caching. If you create your own custom login pages as shown in https://toolset.com/course-lesson/creating-custom-login-forms/, you could have custom login URLs as well, so you might ask for help excluding those custom login page URLs, but I don't think anything special is needed here unless you experience unexpected problems with logins.

#2031087

My issue is resolved now. Thank you!