WordPress.org

Ready to get started?Download WordPress

Forums

Memcached Object Cache
Cache broken (1 post)

  1. tchab2
    Member
    Posted 1 year ago #

    Hi,
    I have a serious problem with memcache for a couple of months.

    I add some rewrite rules filter for a blog. It works fine but after some time, when the url is recalled, it returns a 404 not found.

    I have to flush manually the cache to fix the bug every time.

    Rewrite rules:

    // <category>/archives/<year>/<month>
      add_rewrite_rule('(.+?)/archives/([0-9]{4,})/([0-9]{2,})/page/([0-9]+)/?$', 'index.php?category_name=$matches[1]&year=$matches[2]&monthnum=$matches[3]&paged=$matches[4]', 'top');
      add_rewrite_rule('(.+?)/archives/([0-9]{4,})/([0-9]{2,})/?$', 'index.php?category_name=$matches[1]&year=$matches[2]&monthnum=$matches[3]', 'top');
    
      // <category>/archives/<year>
      add_rewrite_rule('(.+?)/archives/([0-9]{4,})/page/([0-9]+)/?$', 'index.php?category_name=$matches[1]&year=$matches[2]&paged=$matches[3]', 'top');
      add_rewrite_rule('(.+?)/archives/([0-9]{4,})/?$', 'index.php?category_name=$matches[1]&year=$matches[2]', 'top');
    
      // <category>/archives
      add_rewrite_rule('(.+?)/archives/page/([0-9]+)/?$', 'index.php?category_name=$matches[1]&paged=$matches[2]', 'top');
      add_rewrite_rule('(.+?)/archives/?$', 'index.php?category_name=$matches[1]', 'top');

    I am not able to reproduce the bug in the development environment.

    Do you have some councils for me??

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.