Skip Navigation

[Resolved] Image update after CRED editing

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

Problem:

Flush post cache, after submit CRED form for editing post.

Solution:

Workaround from the client:

Put wp_cache_flush() in the cred_form_validate action hook and it worked, clearing the cache before submitting the new images.

Relevant Documentation:

https://developer.wordpress.org/reference/functions/wp_cache_flush/

This support ticket is created 6 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 6 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#650231

Hi,

I am showing repetitive images on a layout with some CSS and JS codes. The problem is that when the user update/remove a image with a cred edit form, the image is not updating on the layout after saving, It is only updated on the other day. I tried on 3 different browsers and it is not updating, even with F5 or CTRL F5.

I tested it, editing the toolset layout with my admin account (not changing anything) and saving it causes a refresh with the images correctly updated.

Please, how can i fix it?

#651182

Hello,

It might be a cache problem from other plugin/theme, please check these:

1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem page URL, CRED form URL, Layout URL, I need to test and debug it in my localhost, thanks

#651632

Hi Luo,

I would like to test a cache resset/flush by using a shortcode or function after submitting the form or when the layout is loaded. Is there any command that i can execute?

Thanks

#651839

For the new question:
I would like to test a cache resset/flush by using a shortcode or function after submitting the form or when the layout is loaded

The problem is that which plugin/theme produced the cache problem, if it is another cache plugin, you will need to check the document of that plugin or contact the plugin author, check if there is the command you want.

#653320

Hi Luo,

I used a workaround. I put wp_cache_flush(); on the cred_form_validate function and it worked, clearing the cache before submitting the new images.

Thanks!

#654783

Thanks for sharing the solution.