large Lay Theme transients causing critical autoload issue
-
WordPress Site Health reports a critical issue because my site has several large autoloaded options. The biggest entries are Lay Theme transients such as transientlaylayoutmastercache and transientlaylayoutprojectoverlay, together accounting for more than 3 MB.
Is this expected behaviour in Lay Theme, and can these caches be stored without autoloading them on every request?
-
Hey there! Those are not loaded with every request, no.
Actually, those make your site load faster because once your site is loaded, this cache is then loaded in afterwards and the Gridder jsons, so the Gridder data of the cached pages, is then put into JavaScript memory.
This will make the site navigation near-instant, as long as ajax is used.
Only if your site has AJAX enabled. Otherwise, this won't load at all, as it's not needed.
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it