You are here

function pagestyle_clear_cache in Page Style 5

Same name and namespace in other branches
  1. 6 includes/pagestyle.block.inc \pagestyle_clear_cache()
  2. 7 includes/pagestyle.block.inc \pagestyle_clear_cache()

Clear defined cache tables

7 calls to pagestyle_clear_cache()
pagestyle_black_white in includes/pagestyle.block.inc
Menu callback; Set the pagestyle to Black/White, then redirects to the previous page.
pagestyle_check in ./pagestyle.module
Check the cookie "pagestyle" value of changing (bye JavaScript) for anonymus user.
pagestyle_form in includes/pagestyle.block.inc
Implement hook_form().
pagestyle_set in includes/pagestyle.block.inc
Menu callback; change the pagestyle to the cookie value, then redirects to the previous page.
pagestyle_standard in includes/pagestyle.block.inc
Menu callback; change the pagestyle to Standard, then redirects to the previous page.

... See full list

File

includes/pagestyle.block.inc, line 167
Block, page and theme functions.

Code

function pagestyle_clear_cache() {
  $tables = array(
    'cache_page',
    'cache',
  );
  foreach ($tables as $table) {
    cache_clear_all('*', $table, TRUE);
  }
}