ptions">Configuration messed up?'; echo '
'; echo ''; echo '
'; wp_nonce_field('wp-cache'); echo "
\n"; echo ''; } function wp_cache_edit_max_time () { global $cache_max_time, $wp_cache_config_file, $valid_nonce; if(isset($_REQUEST['wp_max_time']) && $valid_nonce) { $max_time = (int)$_REQUEST['wp_max_time']; if ($max_time > 0) { $cache_max_time = $max_time; wp_cache_replace_line('^ *\$cache_max_time', "\$cache_max_time = $cache_max_time;", $wp_cache_config_file); } } echo '
'; echo ''; echo ""; echo '
'; wp_nonce_field('wp-cache'); echo "
\n"; } function wp_cache_sanitize_value($text, & $array) { $text = wp_specialchars(strip_tags($text)); $array = preg_split("/[\s,]+/", chop($text)); $text = var_export($array, true); $text = preg_replace('/[\s]+/', ' ', $text); return $text; } function wp_cache_edit_rejected_ua() { global $cache_rejected_user_agent, $wp_cache_config_file, $valid_nonce; if (!function_exists('apache_request_headers')) return; if(isset($_REQUEST['wp_rejected_user_agent']) && $valid_nonce) { $text = wp_cache_sanitize_value($_REQUEST['wp_rejected_user_agent'], $cache_rejected_user_agent); wp_cache_replace_line('^ *\$cache_rejected_user_agent', "\$cache_rejected_user_agent = $text;", $wp_cache_config_file); } echo '
Rejected User Agents'; echo "

Strings in the HTTP 'User Agent' header that prevent WP-Cache from caching bot, spiders, and crawlers' requests. Note that cached files are still sent to these request if they already exists.

\n"; echo '
'; echo ''; echo ' '; echo '
'; wp_nonce_field('wp-cache'); echo '
'; echo "
\n"; } function wp_cache_edit_rejected() { global $cache_acceptable_files, $cache_rejected_uri, $wp_cache_config_file, $valid_nonce; if(isset($_REQUEST['wp_rejected_uri']) && $valid_nonce) { $text = wp_cache_sanitize_value($_REQUEST['wp_rejected_uri'], $cache_rejected_uri); wp_cache_replace_line('^ *\$cache_rejected_uri', "\$cache_rejected_uri = $text;", $wp_cache_config_file); } echo "

Add here strings (not a filename) that forces a page not to be cached. For example, if your URLs include year and you dont want to cache last year posts, it's enough to specify the year, i.e. '/2004/'. WP-Cache will search if that string is part of the URI and if so, it will no cache that page.

\n"; echo '
'; echo ''; echo ' '; echo '
'; wp_nonce_field('wp-cache'); echo "
\n"; } function wp_cache_edit_accepted() { global $cache_acceptable_files, $cache_rejected_uri, $wp_cache_config_file, $valid_nonce; if(isset($_REQUEST['wp_accepted_files']) && $valid_nonce) { $text = wp_cache_sanitize_value($_REQUEST['wp_accepted_files'], $cache_acceptable_files); wp_cache_replace_line('^ *\$cache_acceptable_files', "\$cache_acceptable_files = $text;", $wp_cache_config_file); } echo "

Add here those filenames that can be cached, even if they match one of the rejected substring specified above.

\n"; echo '
'; echo ''; echo ' '; echo '
'; wp_nonce_field('wp-cache'); echo "
\n"; } function wp_cache_enable() { global $wp_cache_config_file, $cache_enabled; if(get_settings('gzipcompression')) { echo "Error: GZIP compression is enabled, disable it if you want to enable wp-cache.

"; return false; } if( wp_cache_replace_line('^ *\$cache_enabled', '$cache_enabled = true;', $wp_cache_config_file) ) { $cache_enabled = true; } } function wp_cache_disable() { global $wp_cache_config_file, $cache_enabled; if (wp_cache_replace_line('^ *\$cache_enabled', '$cache_enabled = false;', $wp_cache_config_file)) { $cache_enabled = false; } } function wp_cache_is_enabled() { global $wp_cache_config_file; if(get_settings('gzipcompression')) { echo "Warning: GZIP compression is enabled in Wordpress, wp-cache will be bypassed until you disable gzip compression.
"; return false; } $lines = file($wp_cache_config_file); foreach($lines as $line) { if (preg_match('/^ *\$cache_enabled *= *true *;/', $line)) return true; } return false; } function wp_cache_replace_line($old, $new, $my_file) { if (!is_writable($my_file)) { echo "Error: file $my_file is not writeable.
\n"; return false; } $found = false; $lines = file($my_file); foreach($lines as $line) { if ( preg_match("/$old/", $line)) { $found = true; break; } } if ($found) { $fd = fopen($my_file, 'w'); foreach($lines as $line) { if ( !preg_match("/$old/", $line)) fputs($fd, $line); else { fputs($fd, "$new //Added by WP-Cache Manager\n"); } } fclose($fd); return true; } $fd = fopen($my_file, 'w'); $done = false; foreach($lines as $line) { if ( $done || !preg_match('/^define|\$|\?>/', $line)) fputs($fd, $line); else { fputs($fd, "$new //Added by WP-Cache Manager\n"); fputs($fd, $line); $done = true; } } fclose($fd); return true; /* copy($my_file, $my_file . "-prev"); rename($my_file . '-new', $my_file); */ } function wp_cache_verify_cache_dir() { global $cache_path; $dir = dirname($cache_path); if ( !file_exists($cache_path) ) { if ( !is_writable( $dir ) || !($dir = mkdir( $cache_path, 0777) ) ) { echo "Error: Your cache directory ($cache_path) did not exist and couldn't be created by the web server.
Check $dir permissions."; return false; } } if ( !is_writable($cache_path)) { echo "Error: Your cache directory ($cache_path) or $dir need to be writable for this plugin to work.
Double-check it."; return false; } if ( '/' != substr($cache_path, -1)) { $cache_path .= '/'; } return true; } function wp_cache_verify_config_file() { global $wp_cache_config_file, $wp_cache_config_file_sample; $new = false; $dir = dirname($wp_cache_config_file); if ( !is_writable($dir)) { echo "Error: wp-content directory ($dir) is not writable by the Web server.
Check its permissions."; return false; } if ( !file_exists($wp_cache_config_file) ) { if ( !file_exists($wp_cache_config_file_sample) ) { echo "Error: Sample WP-Cache config file ($wp_cache_config_file_sample) does not exist.
Verify you installation."; return false; } copy($wp_cache_config_file_sample, $wp_cache_config_file); $new = true; } if ( !is_writable($wp_cache_config_file)) { echo "Error: Your WP-Cache config file ($wp_cache_config_file) is not writable by the Web server.
Check its permissions."; return false; } require($wp_cache_config_file); return true; } function wp_cache_check_link() { global $wp_cache_link, $wp_cache_file; if ( basename(@readlink($wp_cache_link)) != basename($wp_cache_file)) { @unlink($wp_cache_link); if (!@symlink ($wp_cache_file, $wp_cache_link)) { echo "advanced-cache.php link does not exist
"; echo "Create it by executing:
ln -s $wp_cache_file $wp_cache_link
in your server
"; return false; } } return true; } function wp_cache_check_global_config() { $global = ABSPATH . 'wp-config.php'; $lines = file($global); foreach($lines as $line) { if (preg_match('/^ *define *\( *\'WP_CACHE\' *, *true *\) *;/', $line)) { return true; } } $line = 'define(\'WP_CACHE\', true);'; if (!is_writable($global) || !wp_cache_replace_line('define *\( *\'WP_CACHE\'', $line, $global) ) { echo "Error: WP_CACHE is not enabled in your wp-config.php file and I couldn't modified it.
"; echo "Edit $global and add the following line:
define('WP_CACHE', true);
Otherwise, WP-Cache will not be executed by Wordpress core.
"; return false; } return true; } function wp_cache_files() { global $cache_path, $file_prefix, $cache_max_time, $valid_nonce; if ( '/' != substr($cache_path, -1)) { $cache_path .= '/'; } if ( $valid_nonce ) { if(isset($_REQUEST['wp_delete_cache'])) { wp_cache_clean_cache($file_prefix); } if(isset($_REQUEST['wp_delete_cache_file'])) { wp_cache_clean_cache($_REQUEST['wp_delete_cache_file']); } if(isset($_REQUEST['wp_delete_expired'])) { wp_cache_clean_expired($file_prefix); } } if(isset($_REQUEST['wp_list_cache'])) { $list_files = true; $list_mess = "Update list"; } else $list_mess = "List files"; echo '
Cache contents'; echo '
'; echo ''; echo '
'; echo "
\n"; $count = 0; $expired = 0; $now = time(); if ( ($handle = opendir( $cache_path )) ) { if ($list_files) echo ""; while ( false !== ($file = readdir($handle))) { if ( preg_match("/^$file_prefix.*\.meta/", $file) ) { $this_expired = false; $content_file = preg_replace("/meta$/", "html", $file); $mtime = filemtime($cache_path.$file); if ( ! ($fsize = @filesize($cache_path.$content_file)) ) continue; // .meta does not exists $fsize = intval($fsize/1024); $age = $now - $mtime; if ( $age > $cache_max_time) { $expired++; $this_expired = true; } $count++; if ($list_files) { $meta = new CacheMeta; $meta = unserialize(file_get_contents($cache_path . $file)); echo $flip ? '' : ''; $flip = !$flip; echo '"; if ($this_expired) echo ""; else echo ""; echo ""; echo '\n"; } } } closedir($handle); if ($list_files) echo "
'; echo $meta->uri . "$age secs$age secs$fsize KB
'; echo ''; echo ''; echo '
'; wp_nonce_field('wp-cache'); echo "
"; } echo "

$count cached pages

"; echo "

$expired expired pages

"; echo '
'; echo ''; echo ''; echo '
'; wp_nonce_field('wp-cache'); echo "
\n"; echo '
'; echo ''; echo '
'; wp_nonce_field('wp-cache'); echo "
\n"; echo '
'; } function wp_cache_clean_cache($file_prefix) { global $cache_path; // If phase2 was compiled, use its function to avoid race-conditions if(function_exists('wp_cache_phase2_clean_cache')) return wp_cache_phase2_clean_cache($file_prefix); $expr = "/^$file_prefix/"; if ( ($handle = opendir( $cache_path )) ) { while ( false !== ($file = readdir($handle))) { if ( preg_match($expr, $file) ) { unlink($cache_path . $file); } } closedir($handle); } } function wp_cache_clean_expired($file_prefix) { global $cache_path, $cache_max_time; // If phase2 was compiled, use its function to avoid race-conditions if(function_exists('wp_cache_phase2_clean_expired')) return wp_cache_phase2_clean_expired($file_prefix); $expr = "/^$file_prefix/"; $now = time(); if ( ($handle = opendir( $cache_path )) ) { while ( false !== ($file = readdir($handle))) { if ( preg_match($expr, $file) && (filemtime($cache_path . $file) + $cache_max_time) <= $now) { unlink($cache_path . $file); } } closedir($handle); } } add_action('admin_menu', 'wp_cache_add_pages'); ?> $wpsc_version = 169; More about Angina

More about Angina

ANGINA TREATMENTS

What is angina?

Angina occurs when the coronary arteries become narrowed and partially blocked, and significantly limit the blood supply to an area of heart muscle. The coronary arteries are the blood vessels which supply your heart muscle with oxygen so that it can pump blood around the body.

If a part of the heart muscle does not get enough oxygen for a while it will start to cramp. Waste products, which the blood would normally take away, build up. This causes pain in the muscle fibres which is felt as chest pain.

Why should angina be treated?

If the heart muscle does not get enough blood, which carries the vital oxygen it needs to work, it may begin to die. This is what a heart attack is. Doctors sometimes call it myocardial infarction.

Angina does not permanently damage the heart muscle, unless it progresses to a heart attack. The extent to which the coronary arteries are blocked will affect how much oxygen-rich blood can reach the heart muscle.

If you have angina, your doctor will want to treat it to:

provide you with relief from symptoms such as chest pain;

prevent further attacks from happening; and

avoid the risk of you having a heart attack.

Stable and unstable angina

Angina pain is usually brought on by exercise, stress, emotion or cold.

Stable angina eases when you rest. You will usually know what brings it on, such as walking up stairs or uphill. The pain usually goes after a few minutes — it should not last longer than 10 minutes. Your medication should take this pain away. Stable angina doesn’t usually damage the heart muscle.

Unstable angina is not as predictable. It may happen when one or more of the coronary arteries has become even more blocked than it was before. The angina pain may start in situations where it hasn’t happened before, or where you have had no noticeable exertion. For example, it may wake you in the middle of the night when you’re asleep. You may not be able to exert yourself as much as before without angina coming on. Unstable angina may lead to a heart attack. A change in the pattern of your angina is very important and you should visit your doctor as soon as possible.

Working with your doctor

It is important that you work with your doctor or specialist to help your angina. Let them know if you notice the angina coming more frequently or in situations which didn’t used to bring it on.

Experts in angina are continually looking at the best way to treat people with angina. The type of angina you have (stable or unstable) and the severity of it will guide your doctor or specialist in suggesting whether your condition can be managed with medications alone. If medications are not enough you might be a suitable candidate for bypass surgery or angioplasty.

Medications your doctor may prescribe for your angina

Most of the medications prescribed by your doctor for your angina are aimed at either:

making the heart pump more slowly so it doesn’t need as much oxygen; or

improving blood flow to the heart muscle so that it gets more oxygen.

Aspirin

Taking aspirin can reduce the risk of heart attack and death in people with angina when taken correctly. This is because it can prevent blood clots from happening which may block the coronary arteries, causing a heart attack. However, aspirin can cause stomach upset and gut disorders so ask your doctor whether aspirin is suitable for you. If it isn’t, you may be able to take a newer drug called clopidogrel (brands include Plavix and Iscover).

Nitrates

Nitrates have been used to treat angina for more than 100 years and are now available as patches, spray and tablets.

One of the mechanisms that helps nitrates to relieve angina is their ability to open up the coronary arteries and so increase blood flow to the heart muscle. They work very quickly to make it easier for the heart to pump.

Nitrates are used in 2 ways:

to relieve angina pain when it comes on; and

as maintenance medication to stop episodes of angina from happening in the first place.

Your doctor will probably prescribe a short-acting nitrate for you to use to stop an episode of angina once it starts. Sometimes short-acting nitrates are also taken as a precaution before doing any activity that is likely to bring on angina. These nitrates come in the form of tablets that you put under your tongue or in your cheek or a spray which you spray under the tongue.

If you do not get relief within 5 minutes, your doctor will probably advise that you use another tablet or have another spray. If this does not relieve the pain you may be having a heart attack and someone should call an ambulance immediately.

Sometimes you may feel dizzy or have a headache after using nitrates to stop angina. This is because the blood vessels to the brain are also opening up. You may need to sit or lie down for a few minutes.

Longer acting nitrates are used as ongoing maintenance medication to prevent angina from happening. These may take the form of patches or tablets.

As your body can get used to the effects of nitrates and stop responding to them, your doctor may advise you on specific times of day you should take them so that there is a gap when you are nitrate-free to stop the body becoming accustomed to the nitrates and developing tolerance to them.

Nitrates may be prescribed by your doctor on their own or to be taken with other medications for your angina.

Nitrates available include:

glyceryl trinitrate (brands include Anginine, Transiderm-Nitro, Nitro-Dur and Nitrolingual Pumpspray);

isosorbide mononitrate (brands include Imdur Durules and Monodur); and

isosorbide dinitrate (brands include Sorbidin and Isordil).

Nitrate tablets have a limited shelf life and your doctor or pharmacist may give you instructions on how to keep them. Follow these instructions carefully.

Nitrates and Viagra, Cialis or Levitra

People taking nitrates should not take Viagra, Cialis or Levitra because this could lead to a large, sudden and dangerous drop in blood pressure.

Beta-blockers

Beta-blockers slow the heart and lower the pressure in the arteries so the heart does not need as much oxygen as normal to pump. This makes it less likely that angina will occur, as the heart muscle should have enough oxygen to work effectively.

They certainly seem to reduce the occurrences of angina and give people a bigger capacity for exercise than they had. Beta-blockers also reduce the risk of dying from heart disease. However, some beta-blockers appear to be more effective in angina than others.

Beta-blockers which are used for angina include atenolol (brands include Tensig and Tenormin) and metoprolol (brands include Betaloc and Lopresor).

Like many drugs beta-blockers can have side effects. These may include: bad dreams, fatigue, dizziness, upset stomach and depression. Beta-blockers may not be suitable for people with asthma. Your doctor will be able to advise if beta-blockers are appropriate for you.

Calcium channel blockers or calcium antagonists

These medications reduce the heart rate and slightly enlarge the coronary blood vessels by slowing down the rate at which calcium enters the heart muscle and blood vessel walls. This has the end result of improving the blood flow to the heart muscle and reducing the workload on the heart.

Your doctor may prescribe a calcium channel blocker in conjunction with a beta-blocker. Among the most common side effects of the calcium channel blockers are headaches and dizziness.

Some of the calcium channel blockers available are: amlodipine (e.g. Norvasc); nifedipine (e.g. Adalat and Adalat Oros); diltiazem (e.g. Cardizem); and verapamil (e.g. Cordilox and Isoptin).

Nicorandil

Nicorandil (brand name Ikorel) is a newer medication for the treatment of stable angina. It works by opening the coronary arteries and relaxing muscle in the blood vessels and so reduces angina. Nicorandil comes as tablets. The most common side effects of nicorandil are headache and abdominal pain.

Perhexiline

Perhexiline maleate (brand name Pexsig) is used to treat moderate to severe angina which doesn’t respond to treatment with other angina medications or where other medications aren’t suitable. People who take perhexiline must have regular blood tests to monitor the level of drug in their body to make sure that it stays within acceptable levels.

Your doctor may prescribe perhexiline tablets in conjunction with other medications for angina. The most common side effects when starting perhexiline are nausea and dizziness.

Cholesterol-lowering medications

Your doctor may also suggest you take cholesterol-lowering medications, especially if you have unstable angina. This is to reduce the risk of your coronary arteries becoming more narrowed from build up of cholesterol.

Leave a Comment

You must be logged in to post a comment.