Forums

[resolved] [Plugin: DB Cache] DB cache and SimpleTags bug (1 post)

  1. Gautier_Girard
    Member
    Posted 3 months ago #

    There is small bug while using db cache and simple tags, when editing a post.

    Please see it and how to solve it (hopefully) :

    -> What steps will reproduce the problem?
    1. Install Simple Tags & DB-Cache plugins
    2. Create a New post, add tags, save
    3. Edit tags within the post and Save post

    -> What is the expected output? What do you see instead?

    Tags should be updated but it's not the case: DB-Cache displays former tags instead of new entered tags.

    -> What version of the product are you using? On what operating system?

    Simple Tags 1.5.6
    DB-Cache : 0.6

    -> Please provide any additional information below.

    To solve this :
    - edit db-cache.php
    - go to line 100 '// Add cleaning on publish and new comment'
    - Below these lines :
    add_action('publish_post', 'dbc_clear', 0);
    add_action('edit_post', 'dbc_clear', 0);
    add_action('delete_post', 'dbc_clear', 0);
    - Add these two lines :
    add_action('clean_page_cache', 'dbc_clear', 0);
    add_action('clean_post_cache', 'dbc_clear', 0);

    That's all.

    DB Cache is great!

    Gautier

    http://wordpress.org/extend/plugins/db-cache/

Reply

You must log in to post.

About this Topic

Tags