WordPress.org

Plugin Directory

Changeset 632893


Ignore:
Timestamp:
12/02/12 05:05:43 (17 months ago)
Author:
solarissmoke
Message:

Add message about invalidating the cache when WP_CACHE is true

File:
1 edited

Legend:

Unmodified
Added
Removed
  • disable-comments/trunk/disable-comments.php

    r614399 r632893  
    214214             
    215215            $this->update_options(); 
    216             echo '<div id="message" class="updated fade"><p>Options updated. Changes to the Admin Menu and Admin Bar will not appear until you leave or reload this page.</p></div>'; 
     216            echo '<div id="message" class="updated"><p>Options updated. Changes to the Admin Menu and Admin Bar will not appear until you leave or reload this page.' . ( WP_CACHE ? ' <strong>If a caching/performance plugin is active, please invalidate its cache to ensure that changes are reflected immediately.</strong>' : '' ) . '</p></div>'; 
    217217        }    
    218218    ?> 
     
    221221    <?php screen_icon( 'plugins' ); ?> 
    222222    <h2>Disable Comments</h2> 
    223     <?php if( $this->networkactive ) echo '<div class="updated fade"><p><em>Disable Comments</em> is Network Activated. The settings below will affect <strong>all sites</strong> in this network.</p></div>';?> 
     223    <?php  
     224    if( $this->networkactive )  
     225        echo '<div class="updated"><p><em>Disable Comments</em> is Network Activated. The settings below will affect <strong>all sites</strong> in this network.</p></div>'; 
     226    if( WP_CACHE ) 
     227        echo '<div class="updated"><p>It seems that a caching/performance plugin is active on this site. Please manually invalidate that plugin\'s cache after making any changes to the settings below.</p></div>'; 
     228    ?> 
    224229    <form action="" method="post" id="disable-comments"> 
    225230    <p>Globally disable comments on:</p> 
Note: See TracChangeset for help on using the changeset viewer.