WordPress.org

Forums

Relevanssi - A Better Search
Bug? Caching changes results (11 posts)

  1. Hector
    Member
    Posted 4 years ago #

    When I enable caching, without changing absolutely nothing else, the number of results change. For instance I search "apples" and have 3 results. Then enable caching, F5 the results page and now I have 1 result.

    Is this a bug?

    http://wordpress.org/extend/plugins/relevanssi/

  2. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    Well, that shouldn't happen, so yes, it's a bug. Then again, caching is an experimental feature with no guarantee of actually working =)

    Is it possible there's some old data in the cache? What happens if you adjust the cache expiry time to, say, 1 second and search again?

  3. Hector
    Member
    Posted 4 years ago #

    Yes that must have something to do. If I set 1 sec expiration it shows 3 results. But I'd assumed that would've cleaned the cache? If I set it back to 172800 it will return just 1 again.

    Where can I flush the cache?

    Thanks!!

  4. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    Strange, as it should store the 3-hit result in the cache.

    There's no way to flush the cache right now, except to empty the database table.

    I'll have to take a closer look at the cache code (and provide a way to flush the cache).

  5. Hector
    Member
    Posted 4 years ago #

    Thanks for the super quick replies.

    I'll keep an eye on the changelog then.

    Cheers!

  6. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    Ok, found it - the MySQL is wrong, and the cache won't update. Will fix in the next version.

  7. Hector
    Member
    Posted 4 years ago #

    You're an ace!!!

  8. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    You can thank me by buying Relevanssi Premium, which is going to be available soon. =)

  9. Hector
    Member
    Posted 4 years ago #

    Awesome!

    When will it be out? What extra goodies will it have?

    Count me in.

    :)

  10. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    It's out as soon as WP Plugins gets it approved. New stuff will include better spell correction for "did you mean" searches, WPMU support (not in the first version though, but it's almost done) and a clever search throttling idea that'll make search perform better with large databases. To start with...

  11. Mikko Saari
    Member
    Plugin Author

    Posted 4 years ago #

    Relevanssi Premium is out now: Relevanssi.com

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Relevanssi - A Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags