-
Testing GenerateBlocks 2.5.0-rc.2 + GenerateBlocks Pro 2.8.0-rc.2 on a throwaway WP Engine clone of a production-style site (WP 7.1.2, GP 3.6.1, GP Premium 2.5.6). Before upgrading I captured the 2.4.0 / 2.7.0 state; after upgrading I re-read the same values. One observation I’d like to confirm is intended, since the changelog says page-local block CSS is now always inlined and the file path is retired.
BEFORE (2.4.0 / 2.7.0):
– wp option get generateblocks_dynamic_css_posts → {“33″:true,”131″:true,”132″:true}
– served Home: <link rel=”stylesheet” href=”…/uploads/generateblocks/style-33.css?ver=…>
– files present in wp-content/uploads/generateblocks/AFTER (2.5.0-rc.2 / 2.8.0-rc.2), same site, no content changes:
– generateblocks_dynamic_css_posts → [] — and it does NOT refill after a logged-out page view, a Design-panel visit, or an editor save
– generateblocks_dynamic_css_time → still updates on each view (1790885984 after a view)
– served Home: NO <link> to style-33.css; the page CSS is in <style id=”generateblocks-inline-css”> instead — so inlining is live and works
– wp-content/uploads/generateblocks/style-33.css is STILL being written (fresh mtime after the view, 47,354 B, same bytes as before) — written but never served
– new options generateblocks_style_css and generateblocks_global_styles exist but stay empty (“” and array()) through a view, a Design-panel visit, and an editor save
– stored post content unchanged through the upgrade and through a real editor save (post_modified updated, content bytes identical) — upgrade is content-safe on this site, no complaints thereQuestions: (1) Is writing the style-{id}.css files to uploads still intended at 2.5, now that they’re not enqueued? (2) Is generateblocks_dynamic_css_posts meant to stay empty from here on, or should it be tracking inline-compiled pages? (3) What populates generateblocks_style_css — nothing I did on this site filled it.
Happy to run anything else on this clone; it exists for this.
-
Alvind
Hi there,
The inline CSS output and the empty
generateblocks_dynamic_css_postsoption are both expected in 2.5. What isn’t expected is the old page CSS files being rewritten orgenerateblocks_dynamic_css_timebeing updated.I tested this with the same versions, including upgrading from GB 2.4.0 / Pro 2.7.0, using legacy, V2, and mixed content. I tried viewing the pages, visiting the Design panel, and saving from the editor. In all cases, the local CSS was output inline and the old index remained empty. The existing CSS files kept their original timestamps and contents, and the old timestamp option didn’t change.
So, to answer your questions:
1.
style-{id}.cssfiles should no longer be written or served. Any existing files are simply left in place after the upgrade.2.
generateblocks_dynamic_css_postshas been retired and should remain empty. It doesn’t track the new inline CSS.3.
generateblocks_style_cssis used to cache Pro Global Styles CSS, not page-level styles. It’s normal for it to be empty if there’s no Global Styles CSS to collect.generateblocks_global_styles, on the other hand, belongs to the legacy Global Styles feature.Could you check the exact file modification time and the
generateblocks_dynamic_css_timevalue immediately before and after one uncached, logged-out page view and share the results with us?That should help us narrow down what’s causing the difference on your site. It’s possible that an older cached PHP path or something else is still writing to those files, but we haven’t confirmed the cause yet.
-
You’re right, and I owe you a correction. The file write times I reported (20:16–20:19)
and the dynamic_css_time value (1790885984 = 20:19:44 UTC) all predate my upgrade — they
were written by my own pre-upgrade baseline reads at 2.4.0, and I misread the server’s UTC
timestamps as local post-upgrade times. Sorry for the noise.Your test, run just now at rc.2: dynamic_css_time 1790885984 and all seven style-*.css
mtimes (2026-10-01 19:52–20:19 UTC) identical before and after one uncached logged-out
view of the home page. Nothing writes. Behavior matches your description exactly:
inline CSS served, dynamic_css_posts empty and retired, old files inert.Thanks for the three answers — especially that generateblocks_style_css caches Pro Global
Styles and generateblocks_global_styles is the legacy feature; that clears up what I was
looking at. Consider the question closed. -
Alvind
No problem, glad to hear that!
- You must be logged in to reply to this topic.