Hi, I reached out to Beaver Builder Power Pack and Beaver Builder, and I’m still having issues, so I thought I’d reach out to the community here.
I’ve been using ACF more often in my client sites. In the last few months, I’ve noticed (on multiple servers), an issue with elements disappearing after editing ACF fields and updating.
This is happening on my usual server (SiteGround) and a client server (CanSpace). In one instance it’s a row background image (feature image through an ACF image upload) not updating…and in another, I’ll update 1 element of text and all of the Smart Headers disappear. The only thing that will correct it is to use Beaver Builder’s purge cache tool. Because this is cumbersome for clients to access, I’ve had to install BB clear cache. But the only way to have that show up to the client in the admin bar is to give them admin privileges.
I’ve looked into it a bit, and it seems it’s an issue with the CSS not reloading? Needless to say, this is all cumbersome and not beneficial to my client work.
To be clear, I’ve tried disabling and deleting BB Clear Cache, SG optimizer and SG security. There are no other cache plugins used.
Is there a functions.php script that auto clears through BB Cache. No other cache purging works.
It really depends what you are changing in ACF, you need a function from the SG plugin to clear its cache then wrap it all in an action, but that depends on specifically what you are changing and where the option is as acf has many actions with great documentation.
The SG plugin has sg_cachepress_purge_cache() function to purge its caches and BB has FLBuilderModel::delete_asset_cache_for_all_posts() to delete all compiled CSS and JS
It’s really any tiny change. Like, I could delete the D in the title and hit publish, and all the headers will be gone. Same thing with the row background image. It’s any slight change will break everything on the front.
Is there a function to offer a BB cache deletion automatically . As I mentioned, I’m not using the SG clear cache. It’s all off. Plus I deleted it for a bit to eliminate the problem.
You cant turn off SG caching, its on the server that’s why you need their plugin to tell it to clear.
When you click publish in BB for example it clears the compiled css/js for that page then ( assuming you have the cache extensions enabled ) it pings the SG cache plugin to clear its cache.
Yea I asked where the acf option was because its actions differ based on the setting location, like is it a page/post field, is it a global option etc etc
Also I never found you ticket did you use another email or something?
Hi. It’s complicated, but I recently did a site with a new BB licence…and I sent the ticket through that account by mistake instead of this one. I can private message you the email / ticket…or begin a new one with my licence.
All the Field Groups are directed to pages. Primarily the home page…and a couple others to a second page.
ok so assuming you have the cache extensions enabled in the tools menu, when you make an acf change BB uses an acf action to clear the BB cache. what you are probably experiencing is the SG cache not clearing so you are not seeing the changes. Something like this:
I’ve enabled cache extensions in the BB Tools. And this is my SG Optimizer. (same results with or without dynamic caching). Still need to manually purge the BB Cache
Did you try the action? It should purge SG when you make changes to acf, if you need it to clear the BB CSS too then you need to add the other function that I mentioned in my 1st reply.
Then go a page edit screen, and change an acf field then save the page in WP. Now find your server log and you should see the message to confirm its working. This is all assuming you are making the changes on a page or post as all I have to go on is an image of an acf field
So nothing is being logged? Then there is either something broken in acf, your code isn’t being executed or you are not changing a field on a post or a page, where exactly is the field you are editing?
Right so again where is the field you are editing, is it a post, a page or an acf global option? You may need to contact acf if their filters are no longer working.