• Resolved Matze Pabst

    (@matthiaspabst)


    Hello dev4press team,

    I have a problem with the dynamic load extension.

    I tested this feature on a clean installation with a standard theme and without any other active plugins. I tested with 2 different caching plugins:

    Cache Enabler: https://ww.wp.xz.cn/plugins/cache-enabler/
    WP Super Cache: https://ww.wp.xz.cn/plugins/wp-super-cache/

    I configured both plugins to save the cached pages as html files in /wp-content/cache/.

    The problem (same with both plugins):
    After rating a post, the rating is shown correctly. But when I reload the page, the rating system still shows the previous rating (from the page cache). It doesn’t load the new rating via AJAX. I only see the new rating after manually empty the page cache.

    I already viewed your video about the dynamic load extension and searched your FAQ and your forum. I could find any helpful tipps.

    Could you please test the dynamic load extension? Is it working properly? Which caching plugin do you use? Thank you.

    Best regards,
    Matthias

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    Dynamic Load works fine, and it is tested with WP Super Cache, W3 Total Cache, WP Rocket plugins. I use it on few websites (both Pro and Lite plugin versions), there are no issues.

    Do you have errors in the JavaScript (browser console) or in the PHP server logs? Only errors can explain the extension not working.

    Milan

    Thread Starter Matze Pabst

    (@matthiaspabst)

    Hello Milan,

    I tested it again with WP Super Cache. There are no JS errors in the browser console and no PHP errors. But what I found out: in your video I saw that there is a loading message “Please wait …” after refreshing a page. I don’t see this. The ratings block is always loaded instantly from the cached HTML file. I checked the cached HTML file and I saw that it already contains the following div:
    <div class="gdrts-rating-text">Rating: <strong>5.0</strong>. From 1 vote.</div>
    Maybe there’s the issue? Shouldn’t this div be loaded dynamically?

    Best,
    Matthias

    Plugin Author Milan Petrovic

    (@gdragon)

    This looks like the Dynamic Load addon is not active. Are you sure you have activated it from the Extensions Settings panel?

    Thread Starter Matze Pabst

    (@matthiaspabst)

    Of course, I enabled it from the extensions settings panel.

    Thread Starter Matze Pabst

    (@matthiaspabst)

    Any other idea?

    Maybe an alternative solution could solve my problem.

    Is it possible to clear the cache of the caching plugin, when a rating is saved? For example, Cache Enabler provides a snippet (last chapter) to clear the cache via third party:

    if ( has_action('ce_clear_post_cache') ) {
        do_action('ce_clear_post_cache', 1111); // post_id
    }

    Is it possible to use this action with GD Rating System?

    Plugin Author Milan Petrovic

    (@gdragon)

    This shouldn’t matter, AJAX calls are not cached by any plugins I know of. Can you give me URL where you have the plugin (with Dynamic Load) running and not working as expected?

    Thread Starter Matze Pabst

    (@matthiaspabst)

    Hello Milan,

    yes. Here is a test site: http://test2.matthiaspabst.de
    Both posts are rated.
    Installed plugins: GD Rating System and Cache Enabler

    Some screenshots: https://cloudup.com/ci4gvRO_aZN

    Plugin Author Milan Petrovic

    (@gdragon)

    This looks like Dynamic Load not running. If it is running, when the page is loaded, the rating would load after the page, and loading message is displayed. I will recheck the plugin, maybe there is a bug to cause this.

    Thread Starter Matze Pabst

    (@matthiaspabst)

    Any news? Did you find something?

    Plugin Author Milan Petrovic

    (@gdragon)

    I plan to release a new version next week, and it should be sorted out. I am applying all bug fixes from the last two major Pro versions, including some fixes related to Dynamic Load.

    Plugin Author Milan Petrovic

    (@gdragon)

    This should be fixed now in version 2.3.

    Thread Starter Matze Pabst

    (@matthiaspabst)

    Awesome! Thank you!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Dynamic load extension doesn’t work as expected’ is closed to new replies.