Remove unused cache file, update order logging to comment out file creation, remove logging summary call in index, add .DS_Store file, create .htaccess for security settings
This commit is contained in:
@@ -201,7 +201,7 @@ class Order implements \ArrayAccess
|
||||
if ( !is_dir( $dir_logs ) )
|
||||
mkdir( $dir_logs, 0777, true );
|
||||
|
||||
$file = $dir_logs . date( 'Y-m-d' ) . '-order-set-as-paid.txt';
|
||||
// $file = $dir_logs . date( 'Y-m-d' ) . '-order-set-as-paid.txt';
|
||||
$content = date( 'Y-m-d H:i:s' ) . ' | ' . $this -> id . ' | ' . $this -> number . ' | ' . $this -> summary . ' | ' . $this -> client_email . "\n";
|
||||
$content .= print_r( $apilo_response, true ) . "\n\n";
|
||||
file_put_contents( $file, $content, FILE_APPEND );
|
||||
|
||||
Reference in New Issue
Block a user