Changeset 1175754
- Timestamp:
- 06/06/2015 09:31:26 AM (11 years ago)
- Location:
- wpbase-cache/trunk
- Files:
-
- 2 edited
-
trunk/wpbase-cache.php (modified) (2 diffs)
-
wpbase-cache.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpbase-cache/trunk/trunk/wpbase-cache.php
r1161071 r1175754 4 4 Plugin URI: https://github.com/baseapp/wpbase-cache 5 5 Description: A wordpress plugin for using all caches on varnish, nginx, php-fpm stack with php-apc. This plugin includes db-cache-reloaded-fix for dbcache. 6 Version: 1.0. 66 Version: 1.0.7 7 7 Author: Vikrant Datta 8 8 Author URI: http://blog.wpoven.com … … 172 172 $wpbase_cache->flush_varnish_cache($site); 173 173 } 174 175 add_action( 'admin_notices', 'warn_admin_notice' ); 176 function warn_admin_notice() 177 { 178 $url = $_SERVER[HTTP_HOST].$_SERVER['REQUEST_URI']; 179 if (is_admin() && strpos($url,':8080') !== false){ ?> 180 <div class="updated"> 181 <p><?php echo '<font color="red">WPBase-Cache Warning! </font>: You are accessing the site through the server IP. It is recommended that you do not make any changes to the site while accessing through the server IP.'; ?></p> 182 </div><?php 183 } 184 } -
wpbase-cache/trunk/wpbase-cache.php
r1161071 r1175754 4 4 Plugin URI: https://github.com/baseapp/wpbase-cache 5 5 Description: A wordpress plugin for using all caches on varnish, nginx, php-fpm stack with php-apc. This plugin includes db-cache-reloaded-fix for dbcache. 6 Version: 1.0. 66 Version: 1.0.7 7 7 Author: Vikrant Datta 8 8 Author URI: http://blog.wpoven.com … … 172 172 $wpbase_cache->flush_varnish_cache($site); 173 173 } 174 175 add_action( 'admin_notices', 'warn_admin_notice' ); 176 function warn_admin_notice() 177 { 178 $url = $_SERVER[HTTP_HOST].$_SERVER['REQUEST_URI']; 179 if (is_admin() && strpos($url,':8080') !== false){ ?> 180 <div class="updated"> 181 <p><?php echo '<font color="red">WPBase-Cache Warning! </font>: You are accessing the site through the server IP. It is recommended that you do not make any changes to the site while accessing through the server IP.'; ?></p> 182 </div><?php 183 } 184 }
Note: See TracChangeset
for help on using the changeset viewer.