Clear System caches clears the pb_social posts

Issue #3 open
Robert Becker created an issue

Due to the refactoring of the Cache Backend it seemed to be a nice feature to connect the system cache with the pb_social cache. In reality this leaves the frontpage after a system cache clear command without posts until the scheduler task is executed again. Needs to be refactored. Two possible approaches: * disconnect pb_social cache from system cache * execute import after clearing system cache

Comments (3)

  1. André Gruhn

    The best approach will be:

    • load the social stuff when calling the frontend with the pbsocial plugin
    • this will fill the default frontend page cache (cf_pages) and your cache tables (cf_pbsocial)
    • add plugin 'px-social-plugin' + id as cache tag to cf_pages_cache_tags
    • not everybody wants to configure a scheduler task etc.
    • normally a clear_cache_midnight config will refresh the page each day (small pages,...)

    • optionally the integrator can add your extbase command to refresh the posts in background

    • this will fill the cache tables of pb_social (cf_pbsocial)
    • check if feed has changed (compare with current cache value)
    • when yes:
    • replace old cache entry with new feed / posts ...data
    • clear cache of specific pages where the plugin is located (via cache tag from aboth)

    • sounds a little bit tricky, but i think this is a solution for both simple users and enterprise professional users

  2. Robert Becker reporter

    Due to the refactoring of the Cache Backend it seemed to be a nice feature to connect the system cache with the pb_social cache. In reality this leaves the frontpage after a system cache clear command without posts until the scheduler task is executed again. Needs to be refactored. Two possible approaches: * disconnect pb_social cache from system cache * execute import after clearing system cache

  3. Log in to comment