• It seems like the TablePress plugin is overriding the Element Caching.

    I have Elementor Pro 3.28.0 and TablePress 3.0.4.

    When TablePress is enabled, in the menu: Elementor/Settings/Features I cannot enable the Element Caching option. All others can be activated, but this one cannot.

    Only when I deactivate the TablePress plugin do I have the option to activate “Element Caching” in the Elementor plugin.

    I found an entry on the Elementor website that explains how to insert a table using the TablePress example. I do not know if the problem is on your side or on the Elementor side. Or maybe there is another faster solution to this problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Rafał,

    Thanks for your post and sorry for the trouble!

    Your observation is correct, TablePress does turn off that option in the Elementor settings as it’s causing quite a bit of problems on many sites. Unfortunately, this feature treats Shortcodes as “static” which means that Shortcode output is cached. This then results in actions that are run during Shortcode evaluation (like the registration of CSS and JavaScript files) not working.

    See https://github.com/TablePress/TablePress/blob/3.0.4/controllers/environment-checks.php#L91-L107 for the relevant code.

    To turn this setting back on on your site, you could e.g. hook into the same filter hook with a later priority and return the desired value, or hook in at an earlier priority and de-register the TablePress filter hook handler.

    Best wishes,
    Tobias

    Thread Starter Rafał Bieleniewicz

    (@bielen2k)

    Thanks for the quick response.

    Will this be fixed in future versions or does it have to stay the way it is now?

    I understand what you wrote to me about hooks but I don’t have enough experience with PHP to implement it (and it’s not particularly important either). I just noticed this anomaly and started a thread here.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    Well, I assume that this won’t really change unless Elementor can implement are more sensible default setting here, or rather a better detection of when to cache widgets (in particular elements with Shortcodes in them) or not :-/ I don’t really like that I had to use these hard measures, but the caching would otherwise create many problems with tables.

    I think it might also be more reasonable to use a global caching plugin on the site, instead of this Elementor feature, as you will then benefit from other things being cached as well.

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.