Server issues + removing Elementor css
-
Hi there Shortpixel/Enable Media Replace team,
I am reaching out on behalf of one of our clients which uses Enable Media Replace. Sadly I did not see any way of getting in touch with you regarding Enable Media Replace in the Shortpixel knowledgebase (https://shortpixel.com/knowledge-base/category/308-enable-media-replace)
So I will have to use the WordPress Plugin directory to do so. Which means I can not share all details to security restrains of course.
If you for instance need the system status report, access to the website, or more information feel free to let me know, and provide me with an address I can send such information to.Situation
A website/webshop which consists out of various custom post types and taxonomies. The setup for some parts could be considered a bit exotic but that should not really matter viewing this form the Enable Media Replace perspective.
The website consisting of 37K+ posts according to the database (this of course includes revisions etc)
We make use of both Elementor and JetEngine to setup the content/pages etc. Noting this because of revisions and they way data is stored.
In caching regard we are using both Cloudflare and WP-Rocket.We have two primary issues;
1] Once Media Replace is run it we see that for instance /wp-content/uploads/elementor/css gets wiped.
It also used to wipe Wp-Rocket fully, but after talking with the customer we have made it so that that can only be done manually as the customer will use Enable Media Replace as much as they need and then manually clear and preload the cache.
This cuts down on the entire cache being cleared multiple and multiple times. But the Elementor files in /wp-content/uploads/elementor/css still get wiped. Which will result in WPRocket cache existing, with reference to Elementor CSS files which have been wiped. Resulting in partially loading pages.Clearing the WP-Rocket cache will resolve that of course.
But is there a way we can prevent Enable Media Replace from clearing those files? We have asked Elementor about this but they have referred us to you as Enable Media Replace triggers the action according to them.2] But also when the customer uses Enable Media Replace on the install the server seems to spike and PHP-FPM processes get spawned and spawned until the server more or less has a full php-fpm pool of those processes.
In such cases the server host has to kill the services to make things reachable again. Which in itself will resolve the issue for the time being but is band-aid and not a solution to an underlying issue.
We have investigated the behavior (by using the wonderful Simple History) for a while and have pinpointed it to being related to Enable Media Replace.In a week where the customer did not do these actions, such issues where not present. When the customer started doing multiple replaces … it went the route as described above.
So it is tying into that specific action.How Enable Media Replace is being used
The customer uses the option to “Replace the file, use the new file name, and update all links”. Which we know is pretty demanding but even with this amount of posts and with these server specifiations should not produce the issue mentioned in 2]
Server details
As we know the action is somewhat intensive we have some specs to share. The server on which this runs is a beast specs-wise;
CPU: AMD EPYC 7313P 16-Core Processor (32 core(s))
RAM: 128GB (Dont know the specific type but that should not really matter)
The PHP-FPM pool has already been set to 200 childeren which really should not be an issue.
Also MariaDB shoudl have sufficient free RAM to handle the action.Can you help us resolve the mentioned issues?
As mentioned if you need any additional information from our end feel free to let me know or reach out on [email protected]Thanks in advance for looking into this!
Best regards,
Patrick Dankers
on behalf of J. Ottenheijm.com
The topic ‘Server issues + removing Elementor css’ is closed to new replies.