ap_cache_page( $content )

Description #

Source #

File: includes/cache.php

function ap_cache_page( $content ) {
	$dir = ap_cache_dir();
	if ( ! is_dir( $dir->folder ) ) {
		mkdir( $dir->folder, 0777, true ); // true for recursive create
	}

	if ( false !== ( $f = @fopen( $dir->path, 'w+' ) ) ) {
		fwrite( $f, $content );
		fclose( $f );
	}
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment