New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caching block breaks in combination with stacks (css/js does not load in) #3970
Comments
By 'staple', do you mean a 'stack'? |
Yes, I mean stack |
I can confirm this. Happened to a site we are developing in 5.7.5.8 After clearing the cache everything is working fine. And the blocks in a stack are loading their view.css. After some time when we revisit the page the view.css didn't load and blocks are unstyled. |
Happened on a second site. |
Yes it is a good temporary solution by putting it in the theme CSS but of course it's not right. CSS/JS should load depending on whether a page contains a block or not, to prevent pages from containing too much css/js that's not used. |
Can you post a block that exhibits this behavior? Is this block in the application directory and manually installed, or is it part of a package? |
Hello,
Block caches wrongfully while having $btCacheBlockOutput = true and setting the concrete5 settings to cache everything. It happens when you place a block in a stack and show this to users that are not logged in. When you first visit the page, it shows with the css/js, but on refresh, when it gets it out of the cache, it shows it wrongfully, as the css/js is not loaded in.
How to reproduce?
Make a stack, make a custom block, place custom block in stack, place stack on a page. Refresh twice as a non-logged in user. Make sure the block is only shown once on the page.
Additional info
C5: 5.7.5.8
The text was updated successfully, but these errors were encountered: