Make WordPress Core


Ignore:
Timestamp:
09/15/2011 08:23:00 PM (14 years ago)
Author:
duck_
Message:

Introduce wp_suspend_cache_addition() to allow reduced memory usage when cache additions aren't useful. Fixes #5389.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r18659 r18681  
    295295     */
    296296    function add( $key, $data, $group = 'default', $expire = '' ) {
     297        if ( wp_suspend_cache_addition() )
     298            return false;
     299
    297300        if ( empty ($group) )
    298301            $group = 'default';
Note: See TracChangeset for help on using the changeset viewer.