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 ); } }
Expand full source code Collapse full source code View on GitHub: includes/cache.php:25
Add your comment