Deprecated

This function has been deprecated. Deprecating this function in favour of 3rd party cache instead.

ap_delete_subscribers_cache( integer $ref_id, string $event = '' )

Description #

Delete cache of subscribers.

Parameters #

  • $ref_id
    integer (Required) Reference id.
  • $event
    string (Optional) Event type. Default value: ''

Changelog #

VersionDescription
4.1.5Introduced.

Source #

File: includes/subscribers.php

function ap_delete_subscribers_cache( $ref_id = 0, $event = '' ) {
	wp_cache_delete( $event . '_' . $ref_id, 'ap_subscribers_count' );
	wp_cache_delete( $event . '_0', 'ap_subscribers_count' );
	wp_cache_delete( '_0' . $ref_id, 'ap_subscribers_count' );
	wp_cache_delete( '_', 'ap_subscribers_count' );
}

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