Update Custom post field by Ajax on cached site

I’ve spotted some errors here: jQuery.ajax({ type: “POST”, contentType: “application/json; charset=utf-8”, // default: ‘application/x-www-form-urlencoded; charset=UTF-8’. you can not set url: “http://localhost/wp-admin/admin-ajax.php”, // if you have correctly enabled ajax in wp, you should use the object you set up with the url data: “{‘action’:’get_PostViews(” + idpost + “)’}”, // you can use a PlainObject notation, so … Read more

WordPress with php 5.5 and zend opcache

Opcache is transparent for WordPress (as it is to any PHP application). However if you had been using APC for object cache (key/value store) via plugin — that function is not available in new bundled Zend cache, it only does opcode caching. You would need to replace object cache with something different (APCu/Memcache/Redis/etc).

Can a WordPress blog be entirely hosted on a CDN if cached?

Yes, making static version of WP blog is definite possibility. I would advise against using caching plugins for that — it’s not their purpose and a lot of their functionality tends to depend on elaborate rewrite rules, which you won’t be able to replicate on CDN. There are dedicated WP solutions (none that I have … Read more

How do I fetch feed info from cache instead of directly from feed?

You could simply use fetch_feed() that implements it’s own extension of SimplePie_Cache: $feed = new SimplePie(); … $feed->set_cache_class( ‘WP_Feed_Cache’ ); … $feed->set_feed_url( $url ); … $feed->set_cache_duration( apply_filters( ‘wp_feed_cache_transient_lifetime’, 12 * HOUR_IN_SECONDS, $url ) ); that caches the feeds with set_transient().

Clearing cached plugin data if it is using an external object cache

We note that the Transients API uses the Object Cache API, when we use an object-cache.php drop-in file. For example if wp_using_ext_object_cache() returns true, then get_transient( $transient ) -> wp_cache_get( $transient, ‘transient’ ) set_transient( $transient, $value, $expiration ) -> wp_cache_set( $transient, $value, ‘transient’, $expiration ) delete_transient( $transient ) -> wp_cache_delete( $transient, ‘transient’ ) where the … Read more

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