Hi Sakin and thank you for your answer.
I created the child theme with the plugin you suggested, activated and added your code in the functions.php file. After saving I got HTTP ERROR 500.
The content of the file is currently below (now the code you gave me is put as comment). Where did I got wrong?
<?php
//
// Recommended way to include parent theme styles.
// (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
//
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array(‘parent-style’)
);
}
//
// Your code goes below
//
//if ( ! function_exists( 'adventurous_poly_invalidcache' ) )
/**
* Template for Clearing Polylang Invalid Cache
*/
/*
function adventurous_poly_invalidcache() {
delete_transient( 'adventurous_post_sliders' );
delete_transient( 'adventurous_page_sliders' );
delete_transient( 'adventurous_category_sliders' );
delete_transient( 'adventurous_image_sliders' );
delete_transient( 'adventurous_homepage_headline' );
delete_transient( 'adventurous_homepage_featured_content' );
delete_transient( 'adventurous_footer_content' );
delete_transient( 'adventurous_footercode' );
delete_transient( 'adventurous_featured_image' );
} // adventurous_wpml_invalidcache
*/
#endif;
#add_action( 'after_setup_theme', 'adventurous_poly_invalidcache' );