Concrete5 Blocks not showing saved content in edit
Permalink
Hi Everyone,
I have a weird bug on a website I help build. There are several blocks that when you edit them and add something new it shows up in the text editor and the live website. Then when you go back the edit you made is gone in the text editor but you can see it in the live site. Only a hard refresh will solve the problem but it will happen again. I have exhausted all options. Lets i disabled concrete 5 cache, disabled the javascript, disabled the CSS so I don't know what to do. The website is using the llatest 5.8 version
I have a weird bug on a website I help build. There are several blocks that when you edit them and add something new it shows up in the text editor and the live website. Then when you go back the edit you made is gone in the text editor but you can see it in the live site. Only a hard refresh will solve the problem but it will happen again. I have exhausted all options. Lets i disabled concrete 5 cache, disabled the javascript, disabled the CSS so I don't know what to do. The website is using the llatest 5.8 version
It sounds like some other caching is interfering. See if you're behind Varnish or Cloudflare or something like that. Chrome also had overly aggressive caching recently; if using that, try a different browser.
Hello,
Thank you for the reply. I have tried it in all the major browsers and it is occuring on all of them. The weird part is that this problem only happens on custom made blocks but not the all ready available ones. From what I can tell it happens with blocks that have a popup in them.
Thank you for the reply. I have tried it in all the major browsers and it is occuring on all of them. The weird part is that this problem only happens on custom made blocks but not the all ready available ones. From what I can tell it happens with blocks that have a popup in them.
It still sounds like a caching thing to me. Bear in mind that there are more forms of caching than just that within c5 and that within your browser. Any caching between those could possibly interfere.
You could check whether your block edit() functions are getting the correct data from the database and populating their elements correctly based on that. Seehttps://documentation.concrete5.org/developers/working-with-blocks/c... (although you're probably already familiar with that).
You could check whether your block edit() functions are getting the correct data from the database and populating their elements correctly based on that. Seehttps://documentation.concrete5.org/developers/working-with-blocks/c... (although you're probably already familiar with that).