Astra_Cache_Base::update_timestamp( string $timestamp )

Updates the Post Meta/ Option Timestamp.


Description


Parameters

$timestamp

(string) (Required) Gets the current timestamp.


Return

(void)


Source

File: classes/cache/class-astra-cache-base.php

	public function update_timestamp( $timestamp ) {
		// Check if current page is a post/ archive page. false states that the current page is a post.
		if ( 'single' === $this->asset_query_var ) {
			update_post_meta( get_the_ID(), 'astra_style_timestamp_css', $timestamp );
		} else {
			update_option( 'astra_get_dynamic_css', $timestamp );
		}
	}

Changelog

Changelog
Version Description
2.1.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.