• Resolved mikygo123

    (@mikygo123)


    Hello,
    I set my timeline settings to show only future announcements,however sometimes i saw old announcements and I have to save one more time the settings to make them hide.
    How can i solve this problem?
    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Code Parrots

    (@codeparrots)

    Hi @mikygo123,

    It seems like the timeline is storing cached data and displaying past announcements to the user. This cache is updated twice per day, and is cleared out when a new announcement is created, an old announcement is updated or the settings page is updated (or just saved).

    You can certainly work around the caching issue by disabling caching within the plugin altogether. You’ll want to add the following code snippet to your themes functions.php file or into a custom MU plugin.

    function flush_timeline_express_cache() {
    
       if ( ! function_exists( 'delete_timeline_express_transients' ) ) {
          return;
       }
    
       delete_timeline_express_transients();
    
    }
    add_action( 'init', 'flush_timeline_express_cache' );

    Ideally, that would delete the cached data on the timeline page load. We will take a look at what we can do to include a filter to disable the cache in the plugin altogether.

Viewing 1 replies (of 1 total)

The topic ‘future posts’ is closed to new replies.