Cache policy not updated according to PageSpeed

ExpiresByType text/x-javascript “access plus 1 month” ExpiresByType text/javascript “access plus 1 month” ExpiresByType application/x-javascript “access plus 14 days” In order to determine the correct mime-type to use you need to look at the Content-Type HTTP response header from your server (using your browser). The default for JavaScript files is application/javascript – which you’ve not included … Read more

Where should a plugin or widget cache its results?

I find that relying on the filesystem to cache results is easy for maintenance, diagnostics, and performance. Please note that this might be true in some (maybe even most) circumstances, but not all of them. If your code is meant for anything beyond personal usage you don’t know with which file system and hardware will … Read more

WooCommerce & Caching [closed]

Read the WooCommerce docs. I’ve run in to this before, and the following pages cannot be cached: Cart My Account Change Password Edit Address View Order Checkout Pay Order Received

What is the best way to count and display the number of posts?

Another solution would be to use an ordered list. $my_query = new WP_Query($args); if ( $my_query->have_posts() ) : echo ‘<ol style=”list-style:decimal”>’; while( $my_query->have_posts() ) : $my_query->the_post(); echo ‘<li><a href=”‘ . get_permalink( get_the_ID() ) . ‘”>’ . get_the_title() . ‘</a></li>’; endwhile; echo ‘</ol>’; endif;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)