• Resolved MacKiller

    (@mackiller)


    Hi, as soon as I create the stub file, the site goes from loading pages in less than a second to 1-2 seconds. The site goes fast again once I delete the file. No errors in Javascript console or nginx error file. How do I troubleshoot this? Using Ubuntu 16, PHP7, MySQL (Percona), NGINX, Multisite WP. I noticed that one of the CPUs spikes momentarily per page, as opposed to not having the stub installed. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hi @mackiller,

    Thanks for trying out WP LCache.

    To provide a bit of background, WP LCache takes a two tier caching approach:

    * Cache persistence is managed by the L2 cache, your database. Every cache entry is written to your database too.
    * Cache performance is managed by the L1 cache, APCu. Cache entries are read from the database into APCu (which is in PHP memory), and then served directly from APCu.

    When you first enable WP LCache, you’ll have a good amount of database activity as it writes all cache entries to the database. Eventually, as long as your codebase is optimized, database activity will die down and most activity will be in APCu.

    However, if your codebase isn’t optimized, you’ll see continued database load. Some common issues include:

    * Frequent calls to wp_cache_flush(), which empties the entire cache and requires the L2 to be completely repopulated.
    * Redundant or duplicative calls to wp_cache_set(), where code paths hardly ever use the cache values they set.

    In both of these cases, any persistent object cache drop-in probably isn’t going to be useful until you solve your code problems.

    Hope this helps clarify!

    Thread Starter MacKiller

    (@mackiller)

    Thank you. For this cause, I went back and forth to the same pages, hoping that it would get faster after the cache was filled in and stable. I am not using anything major, just a vanilla page with no plugins, but divi theme loaded.

    So, this was on a low traffic dev site. Is it possible that we would only see the advantages on a high traffic site, but could actually experience a slow down on a low traffic site?

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Is it possible that we would only see the advantages on a high traffic site, but could actually experience a slow down on a low traffic site

    Yes, as with any object cache drop-in. There’s a certain amount of overhead in using a persistent object cache (network I/O, etc.), so you need to make sure the benefits outweigh the costs.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Making site slower’ is closed to new replies.