ination' => [ 'showing' => count( $entries ), 'total' => $total ] ]; // Set a high expiration date so we still have the cache for static sitemaps. aioseo()->core->cache->update( 'aioseo_sitemap_' . $fileName, $data, MONTH_IN_SECONDS ); } /** * Retrieve the data to use on the XSL. * * @since 4.2.1 * * @param string $fileName The sitemap file name. * @return array The XSL data for the given file name. */ public function getXslData( $fileName ) { return aioseo()->core->cache->get( 'aioseo_sitemap_' . $fileName ); } }