sol_cache_all' ); // Possibly delete slug slider cache if available. if ( ! empty( $slug ) ) { delete_transient( '_sol_cache_' . $slug ); } // Run a hook for Addons to access. do_action( 'soliloquy_flush_caches', $post_id, $slug ); } /** * Helper method to return the max execution time for scripts. * * @since 1.0.0 */ public function get_max_execution_time() { $time = ini_get( 'max_execution_time' ); return ! $time || empty( $time ) ? (int) 0 : $time; } /** * Returns the singleton instance of the class. * * @since 1.0.0 * * @return object The Soliloquy_Common_Lite object. */ public static function get_instance() { if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Soliloquy_Common_Lite ) ) { self::$instance = new Soliloquy_Common_Lite(); } return self::$instance; } } // Load the common class. $soliloquy_common_lite = Soliloquy_Common_Lite::get_instance();