Located in: purchase-log.class.php

Functions that call this hook: WPSC_Purchase_Log::delete_cache()

Arguments Accepted: $log, $value, $col

Version Introduced: 3.8.9

Description: This action is triggered when a purchase log’s object cache is deleted.

Code in context:

[php firstline=”151″ highlight=”158″]

public static function delete_cache( $value, $col = ‘id’ ) {

// this will pull from the old cache, so no worries there

$log = new WPSC_Purchase_Log( $value, $col );

wp_cache_delete( $log->get( ‘id’ ), ‘wpsc_purchase_logs’ );

wp_cache_delete( $log->get( ‘sessionid’ ), ‘wpsc_purchase_logs_sessionid’ );

wp_cache_delete( $log->get( ‘id’ ), ‘wpsc_purchase_log_cart_contents’ );

do_action( ‘wpsc_purchase_log_delete_cache’, $log, $value, $col );