Forums

[resolved] Is define(enable_cache, true) not working in 2.5? (3 posts)

  1. garbonzo
    Member
    Posted 3 years ago #

    On 2.33 i had define('ENABLE_CACHE', true) in my wpconfig and was able to use the buiilt-in cache quite effectively to store my sidebars.
    But in 2.5, nothing happens - nothing is being cached. (I can tell becuase I measure load times by comparing microtimes.)

    Also, the cache folder isn't being populated with anything. Does 2.5 with built-in cache enabled use /wp-content/cache/ at all? Or is it someplace else that I need to create the cache folder?

    THanks

  2. Otto
    Tech Ninja
    Posted 3 years ago #

    2.5 no longer has the built in object cache that can write to files, as such. It almost never helped anybody, and usually degraded performance quite drastically.

    Read more about the changes here:
    http://neosmart.net/blog/2008/wordpress-25-and-the-object-cache/

    Also, here's a way to get it back:
    http://neosmart.net/blog/2008/file-based-extension-to-the-wordpress-object-cache/

  3. garbonzo
    Member
    Posted 3 years ago #

    Thanks for the info Otto!

Topic Closed

This topic has been closed to new replies.

About this Topic